diff options
author | luksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-12-19 10:29:53 +0100 |
---|---|---|
committer | luksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-12-19 10:29:53 +0100 |
commit | a10c4774f541028817c2a08dc6860fef252d0200 (patch) | |
tree | 4db3805965552fccc43d14febb9e83148a0a3f5b /source/Blocks/BlockDoor.h | |
parent | Fixed time calculation in cWorld::Tick() (diff) | |
download | cuberite-a10c4774f541028817c2a08dc6860fef252d0200.tar cuberite-a10c4774f541028817c2a08dc6860fef252d0200.tar.gz cuberite-a10c4774f541028817c2a08dc6860fef252d0200.tar.bz2 cuberite-a10c4774f541028817c2a08dc6860fef252d0200.tar.lz cuberite-a10c4774f541028817c2a08dc6860fef252d0200.tar.xz cuberite-a10c4774f541028817c2a08dc6860fef252d0200.tar.zst cuberite-a10c4774f541028817c2a08dc6860fef252d0200.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Blocks/BlockDoor.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/Blocks/BlockDoor.h b/source/Blocks/BlockDoor.h index 7499e9c82..37584895f 100644 --- a/source/Blocks/BlockDoor.h +++ b/source/Blocks/BlockDoor.h @@ -2,6 +2,7 @@ #pragma once
#include "BlockHandler.h"
+#include "../World.h"
@@ -14,7 +15,6 @@ public: cBlockDoorHandler(BLOCKTYPE a_BlockType);
virtual void OnPlaced(cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ, int a_Dir) override;
virtual void OnDestroyed(cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ) override;
- virtual void OnDigging(cWorld * a_World, cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ) override;
virtual void OnUse(cWorld * a_World, cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ) override;
virtual const char * GetStepSound(void) override;
@@ -34,6 +34,11 @@ public: {
return false;
}
+
+ virtual bool CanBeAt(cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ) override
+ {
+ return a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ);
+ }
} ;
|