mirror of
http://repo.or.cz/minetest_pyramids/tsm_pyramids.git
synced 2025-07-11 12:30:32 +02:00
Fix crash if on_punch was called w/ nil damage
This commit is contained in:
@ -151,7 +151,7 @@ MUMMY_DEF.on_punch = function(self, puncher, time_from_last_punch, tool_capabili
|
||||
end
|
||||
self.attacker = puncher
|
||||
|
||||
if damage > 0 then
|
||||
if damage and damage > 0 then
|
||||
self.last_damage = {
|
||||
type = "punch",
|
||||
puncher = puncher,
|
||||
|
Reference in New Issue
Block a user