summaryrefslogtreecommitdiffstats
path: root/source/blocks/BlockDoor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/blocks/BlockDoor.cpp')
-rw-r--r--source/blocks/BlockDoor.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blocks/BlockDoor.cpp b/source/blocks/BlockDoor.cpp
index 3fc804704..ecee2c12d 100644
--- a/source/blocks/BlockDoor.cpp
+++ b/source/blocks/BlockDoor.cpp
@@ -38,7 +38,12 @@ void cBlockDoorHandler::OnDestroyed(cWorld *a_World, int a_X, int a_Y, int a_Z)
}
}
-void cBlockDoorHandler::OnClick(cWorld *a_World, cPlayer *a_Player, int a_X, int a_Y, int a_Z)
+void cBlockDoorHandler::OnDigging(cWorld *a_World, cPlayer *a_Player, int a_X, int a_Y, int a_Z)
+{
+ cDoors::ChangeDoor(a_World, a_X, a_Y, a_Z);
+}
+
+void cBlockDoorHandler::OnUse(cWorld *a_World, cPlayer *a_Player, int a_X, int a_Y, int a_Z)
{
cDoors::ChangeDoor(a_World, a_X, a_Y, a_Z);
}