diff options
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);
+ }
} ;
|