From f6ae6002c3db2535a9858cf88537845245e6e7ba Mon Sep 17 00:00:00 2001 From: "lapayo94@gmail.com" Date: Sun, 19 Aug 2012 10:44:19 +0000 Subject: Fixed Bug #236 Workbench, Chest and Furnace are usable again git-svn-id: http://mc-server.googlecode.com/svn/trunk@755 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/blocks/BlockDoor.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source/blocks/BlockDoor.cpp') 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); } -- cgit v1.2.3