summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Blocks/BlockPumpkin.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Blocks/BlockPumpkin.h b/src/Blocks/BlockPumpkin.h
index 744f0ecde..008fb4fed 100644
--- a/src/Blocks/BlockPumpkin.h
+++ b/src/Blocks/BlockPumpkin.h
@@ -16,9 +16,7 @@ public:
virtual void OnPlacedByPlayer(cWorld * a_World, cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) override
{
- virtual void OnPlacedByPlayer(cWorld * a_World, cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) override
- {
- if (!a_BlockY > 1) // Make sure server won't check for inexistent blocks (below y=0).
+ if (a_BlockY < 2) // Make sure server won't check for inexistent blocks (below y=0).
{
return;
}
@@ -53,7 +51,6 @@ public:
}
}
}
- }
virtual bool GetPlacementBlockTypeMeta(
cWorld * a_World, cPlayer * a_Player,