summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/DiamondMover/DiamondMover.lua
diff options
context:
space:
mode:
Diffstat (limited to 'MCServer/Plugins/DiamondMover/DiamondMover.lua')
-rw-r--r--MCServer/Plugins/DiamondMover/DiamondMover.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/MCServer/Plugins/DiamondMover/DiamondMover.lua b/MCServer/Plugins/DiamondMover/DiamondMover.lua
index 075268fa4..eaced1058 100644
--- a/MCServer/Plugins/DiamondMover/DiamondMover.lua
+++ b/MCServer/Plugins/DiamondMover/DiamondMover.lua
@@ -25,7 +25,7 @@ function Initialize(Plugin)
Plugin:SetVersion(1);
PluginManager = cRoot:Get():GetPluginManager();
- PluginManager:AddHook(Plugin, cPluginManager.HOOK_BLOCK_PLACE);
+ PluginManager:AddHook(Plugin, cPluginManager.HOOK_PLAYER_USED_ITEM);
return true;
end
@@ -33,7 +33,7 @@ end
-function OnBlockPlace(Player, BlockX, BlockY, BlockZ, BlockFace, HeldItem)
+function OnPlayerUsedItem(Player, BlockX, BlockY, BlockZ, BlockFace, CursorX, CursorY, CursorZ)
-- Don't check if the direction is in the air
if (BlockFace == -1) then