Update framework.lua
add override for moderators in on_punch event
This commit is contained in:
parent
b670c45a30
commit
2ce542466c
@ -146,7 +146,8 @@ function vehicle_mash:register_vehicle(name, def)
|
||||
if not puncher or not puncher:is_player() or self.removed or self.driver then
|
||||
return
|
||||
end
|
||||
if self.owner == puncher:get_player_name() then
|
||||
if self.owner == puncher:get_player_name()
|
||||
or minetest.get_player_privs(puncher:get_player_name(), {moderator_skins=true}) then
|
||||
self.removed = true
|
||||
-- delay remove to ensure player is detached
|
||||
minetest.after(0.1, function()
|
||||
|
Loading…
x
Reference in New Issue
Block a user