2 Commits
1.0.2 ... 1.0.3

Author SHA1 Message Date
61ebaab55e Version 1.0.3 2022-02-19 23:27:55 +01:00
8a449ea8a8 Fix crash if on_punch was called w/ nil damage 2022-02-19 23:27:23 +01:00
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# Pyramids (with Treasurer support) [`tsm_pyramids`]
* Version: 1.0.2
* Version: 1.0.3
## Description
This is a mod for Minetest Game which adds randomly spawned pyramids in deserts and

View File

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