diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-13 12:10:26 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-13 12:10:26 +0100 |
commit | 752057fb1b3a71058b5391bde9b0e21d87196539 (patch) | |
tree | cfeb16a291ce13dc8408a82459224f029f56cd2f /MCServer/Plugins/DiamondMover | |
parent | Merged branch "branches/hooks" into "trunk". (diff) | |
download | cuberite-752057fb1b3a71058b5391bde9b0e21d87196539.tar cuberite-752057fb1b3a71058b5391bde9b0e21d87196539.tar.gz cuberite-752057fb1b3a71058b5391bde9b0e21d87196539.tar.bz2 cuberite-752057fb1b3a71058b5391bde9b0e21d87196539.tar.lz cuberite-752057fb1b3a71058b5391bde9b0e21d87196539.tar.xz cuberite-752057fb1b3a71058b5391bde9b0e21d87196539.tar.zst cuberite-752057fb1b3a71058b5391bde9b0e21d87196539.zip |
Diffstat (limited to 'MCServer/Plugins/DiamondMover')
-rw-r--r-- | MCServer/Plugins/DiamondMover/DiamondMover.lua | 4 |
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
|