projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7024850
)
Rename argument to priv check
author
James Stevenson
<everamzah@gmail.com>
Wed, 16 Mar 2016 18:34:07 +0000
(14:34 -0400)
committer
paramat
<mat.gregory@virginmedia.com>
Fri, 18 Mar 2016 02:35:38 +0000
(
02:35
+0000)
Fixes crash when punching bones not owned by you, and may resolve https://github.com/minetest/minetest_game/issues/940
mods/bones/init.lua
patch
|
blob
|
history
diff --git
a/mods/bones/init.lua
b/mods/bones/init.lua
index 71f8f1cbcb075edb14e93b82ea1f0e14302912e6..39502f1d90078e2128fd5c6a810818c288ba7295 100644
(file)
--- a/
mods/bones/init.lua
+++ b/
mods/bones/init.lua
@@
-5,7
+5,7
@@
bones = {}
local function is_owner(pos, name)
local owner = minetest.get_meta(pos):get_string("owner")
- if owner == "" or owner == name or minetest.check_player_privs(
placer
, "protection_bypass") then
+ if owner == "" or owner == name or minetest.check_player_privs(
name
, "protection_bypass") then
return true
end
return false