From 2691e8daed826e944ca38f4787c77273edbf9404 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 18 Aug 2012 09:56:28 +0000 Subject: Packet refactoring, phase two, partial. Rewritten a few packet handling functions not to use cPacket-descendant objects. This breaks plugin API! Plugins need to modify their hook functions to match those used in the Core plugin git-svn-id: http://mc-server.googlecode.com/svn/trunk@750 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- Plugins/Core/onblockdig.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Plugins/Core/onblockdig.lua') 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 -- cgit v1.2.3