summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-12-14 18:00:40 +0100
committerHowaner <franzi.moos@googlemail.com>2014-12-14 18:00:40 +0100
commit7d0bb51ff024fddb633dc80014bab5bc7bfedb0f (patch)
treec6e1e9b4a04874656a676983baaa4015f765bfec
parentChests uses the transparent list. (diff)
downloadcuberite-BlockFixes.tar
cuberite-BlockFixes.tar.gz
cuberite-BlockFixes.tar.bz2
cuberite-BlockFixes.tar.lz
cuberite-BlockFixes.tar.xz
cuberite-BlockFixes.tar.zst
cuberite-BlockFixes.zip
-rw-r--r--src/BlockEntities/ChestEntity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/BlockEntities/ChestEntity.cpp b/src/BlockEntities/ChestEntity.cpp
index 43caf6ff2..752139b3a 100644
--- a/src/BlockEntities/ChestEntity.cpp
+++ b/src/BlockEntities/ChestEntity.cpp
@@ -80,7 +80,7 @@ void cChestEntity::UsedBy(cPlayer * a_Player)
void cChestEntity::OpenNewWindow(void)
{
// TODO: cats are an obstruction
- if ((GetPosY() + 1 < cChunkDef::Height) && cBlockInfo::IsTransparent(GetWorld()->GetBlock(GetPosX(), GetPosY() + 1, GetPosZ())))
+ if ((GetPosY() + 1 < cChunkDef::Height) && !cBlockInfo::IsTransparent(GetWorld()->GetBlock(GetPosX(), GetPosY() + 1, GetPosZ())))
{
// Obstruction, don't open
return;
@@ -99,7 +99,7 @@ void cChestEntity::OpenNewWindow(void)
virtual bool Item(cChestEntity * a_Chest) override
{
- if ((a_Chest->GetPosY() + 1 < cChunkDef::Height) && cBlockInfo::IsTransparent(a_Chest->GetWorld()->GetBlock(a_Chest->GetPosX(), a_Chest->GetPosY() + 1, a_Chest->GetPosZ())))
+ if ((a_Chest->GetPosY() + 1 < cChunkDef::Height) && !cBlockInfo::IsTransparent(a_Chest->GetWorld()->GetBlock(a_Chest->GetPosX(), a_Chest->GetPosY() + 1, a_Chest->GetPosZ())))
{
// Obstruction, don't open
return false;