From 45591cbe7bef4c54c241a286ece07bc4ade4489e Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Mon, 15 Mar 2021 02:28:18 +0000 Subject: Properly deprecate more XYZ parameter'd functions (#5147) * Fixes #5144 --- src/BlockEntities/ChestEntity.cpp | 2 +- src/BlockEntities/EnderChestEntity.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/BlockEntities') diff --git a/src/BlockEntities/ChestEntity.cpp b/src/BlockEntities/ChestEntity.cpp index e225cf96e..039d62287 100644 --- a/src/BlockEntities/ChestEntity.cpp +++ b/src/BlockEntities/ChestEntity.cpp @@ -215,7 +215,7 @@ bool cChestEntity::IsBlocked() return ( (GetPosY() < cChunkDef::Height - 1) && ( - !cBlockInfo::IsTransparent(GetWorld()->GetBlock(GetPosX(), GetPosY() + 1, GetPosZ())) || + !cBlockInfo::IsTransparent(GetWorld()->GetBlock(GetPos().addedY(1))) || !cOcelot::IsCatSittingOnBlock(GetWorld(), Vector3d(GetPos())) ) ); diff --git a/src/BlockEntities/EnderChestEntity.cpp b/src/BlockEntities/EnderChestEntity.cpp index c5d490766..efc5dce4f 100644 --- a/src/BlockEntities/EnderChestEntity.cpp +++ b/src/BlockEntities/EnderChestEntity.cpp @@ -53,7 +53,7 @@ bool cEnderChestEntity::UsedBy(cPlayer * a_Player) if ( (GetPosY() < cChunkDef::Height - 1) && ( - !cBlockInfo::IsTransparent(GetWorld()->GetBlock(GetPosX(), GetPosY() + 1, GetPosZ())) || + !cBlockInfo::IsTransparent(GetWorld()->GetBlock(GetPos().addedY(1))) || !cOcelot::IsCatSittingOnBlock(GetWorld(), Vector3d(GetPos())) ) ) -- cgit v1.2.3