diff options
author | heav-4 <heavpoot@gmail.com> | 2022-02-14 01:03:32 +0000 |
---|---|---|
committer | heav-4 <heavpoot@gmail.com> | 2022-02-14 01:03:32 +0000 |
commit | b2f3cb85c01b63054d7307ef459b62115deeb7fa (patch) | |
tree | d1a955dc94e4c118817b5ee7ce40ef7f87b8d224 | |
parent | bec3fcbc8130024bd9471e7689f3376c8a8a185f (diff) |
fix pummelling again
-rw-r--r-- | mods/vzxv_pummel/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mods/vzxv_pummel/init.lua b/mods/vzxv_pummel/init.lua index 871ceb4..77652e8 100644 --- a/mods/vzxv_pummel/init.lua +++ b/mods/vzxv_pummel/init.lua @@ -28,7 +28,7 @@ local function toolcheck(tools,tool) local itgroup = minetest.get_item_group(tool,st:sub(8)) return num <= itgroup else - return tools == st + return tool == st end end if not tools then return true end @@ -38,7 +38,7 @@ local function toolcheck(tools,tool) end return false end - return singletoolcheck(tool.item) + return singletoolcheck(tool) end function vzxv.can_pummel(pos,node,tool,side) |