projects
/
zefram
/
minetest
/
technic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9019ebe
)
Fix the chainsaw's protection check
author
ShadowNinja
<shadowninja@minetest.net>
Thu, 26 Jun 2014 20:53:38 +0000
(16:53 -0400)
committer
ShadowNinja
<shadowninja@minetest.net>
Thu, 26 Jun 2014 20:53:38 +0000
(16:53 -0400)
technic/tools/chainsaw.lua
patch
|
blob
|
history
diff --git
a/technic/tools/chainsaw.lua
b/technic/tools/chainsaw.lua
index 4a1bfd80e0e3e79541969ac7702f83f9326de817..503c0100e3e48af67a3fcfb8026c1360a30c40f7 100644
(file)
--- a/
technic/tools/chainsaw.lua
+++ b/
technic/tools/chainsaw.lua
@@
-289,9
+289,9
@@
minetest.register_tool("technic:chainsaw", {
end
local name = user:get_player_name()
- if minetest.is_protected(po
s
, name) then
- minetest.record_protection_violation(po
s
, name)
- return
current_charge
+ if minetest.is_protected(po
inted_thing.under
, name) then
+ minetest.record_protection_violation(po
inted_thing.under
, name)
+ return
end
-- Send current charge to digging function so that the