summaryrefslogtreecommitdiffstats
path: root/Plugins/Core/onblockdig.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Plugins/Core/onblockdig.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/Plugins/Core/onblockdig.lua b/Plugins/Core/onblockdig.lua
index 0fe671ad6..65e48576c 100644
--- a/Plugins/Core/onblockdig.lua
+++ b/Plugins/Core/onblockdig.lua
@@ -1,9 +1,8 @@
-function OnBlockDig( Block, Player )
-
+function OnBlockDig(Player, BlockX, BlockY, BlockZ, BlockFace, Status, OldBlockType, OldBlockMeta)
-- dont check if the direction is in the air
- if Block.m_Direction ~= -1 then
+ if (BlockFace ~= -1) then
- if( Player:HasPermission("core.build") == false ) then
+ if (Player:HasPermission("core.build") == false) then
return true
end
end