mirror of
http://repo.or.cz/minetest_pyramids/tsm_pyramids.git
synced 2025-04-21 11:10:24 +02:00
Fix crash if on_punch was called w/ nil damage
This commit is contained in:
parent
0abcd7960a
commit
8a449ea8a8
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user