summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockPumpkin.h
diff options
context:
space:
mode:
authortonibm19 <tonibm19@gmail.com>2013-12-25 19:32:45 +0100
committertonibm19 <tonibm19@gmail.com>2013-12-25 19:32:45 +0100
commit4cee3d8fe354f1f99da04ca269f409af84e3e4f3 (patch)
treedaa62703b4f7616ecb9cb8c94aef10c4687bcfd4 /src/Blocks/BlockPumpkin.h
parentImplemented xoft suggestion (partly) (diff)
downloadcuberite-4cee3d8fe354f1f99da04ca269f409af84e3e4f3.tar
cuberite-4cee3d8fe354f1f99da04ca269f409af84e3e4f3.tar.gz
cuberite-4cee3d8fe354f1f99da04ca269f409af84e3e4f3.tar.bz2
cuberite-4cee3d8fe354f1f99da04ca269f409af84e3e4f3.tar.lz
cuberite-4cee3d8fe354f1f99da04ca269f409af84e3e4f3.tar.xz
cuberite-4cee3d8fe354f1f99da04ca269f409af84e3e4f3.tar.zst
cuberite-4cee3d8fe354f1f99da04ca269f409af84e3e4f3.zip
Diffstat (limited to 'src/Blocks/BlockPumpkin.h')
-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,