parent
9a106cef79
commit
cf87fdc90f
2
api.lua
2
api.lua
|
@ -737,6 +737,8 @@ function vehicles.on_punch(self, puncher)
|
|||
end
|
||||
vehicles.explodinate(self, 5)
|
||||
end
|
||||
if not self.driver then
|
||||
return end
|
||||
local creative_mode = creative and creative.is_enabled_for and creative.is_enabled_for(self.driver:get_player_name())
|
||||
if self.driver == puncher and (hp == self.hp_max-5 or hp == self.hp_max or creative_mode) then
|
||||
local name = self.object:get_luaentity().name
|
||||
|
|
Loading…
Reference in New Issue