Update framework.lua

add override for moderators in on_punch event
This commit is contained in:
shivajiva101 2016-07-06 18:49:20 +01:00 committed by GitHub
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()