>fixed problem with line 740
master
D00Med 2017-05-25 07:31:32 +10:00
parent 9a106cef79
commit cf87fdc90f
1 changed files with 2 additions and 0 deletions

View File

@ -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