From 8a449ea8a84df1ad0905af2edcd67d6d5888f010 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 19 Feb 2022 23:27:23 +0100 Subject: [PATCH 1/2] Fix crash if on_punch was called w/ nil damage --- mummy.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mummy.lua b/mummy.lua index 1d3c046..4364cce 100644 --- a/mummy.lua +++ b/mummy.lua @@ -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, From 61ebaab55ec0030257741195026dea2538fd0949 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 19 Feb 2022 23:27:55 +0100 Subject: [PATCH 2/2] Version 1.0.3 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4e752be..8809d7b 100644 --- a/README.md +++ b/README.md @@ -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