42 lines
1.1 KiB
Diff
42 lines
1.1 KiB
Diff
diff --git a/apa_patch.lua b/apa_patch.lua
|
|
new file mode 100644
|
|
index 0000000..d14688d
|
|
--- /dev/null
|
|
+++ b/apa_patch.lua
|
|
@@ -0,0 +1,11 @@
|
|
+
|
|
+water_life.poison_after_death = minetest.settings:get_bool("water_life_poison_after_death") or false
|
|
+
|
|
+minetest.register_on_dieplayer(function(player)
|
|
+ if not player then return end
|
|
+ if water_life.poison_after_death then return end
|
|
+
|
|
+ local meta=player:get_meta()
|
|
+ meta:set_int("snakepoison",0)
|
|
+ water_life.change_hud(player,"poison",0)
|
|
+end)
|
|
\ No newline at end of file
|
|
diff --git a/init.lua b/init.lua
|
|
index 22c16c9..8b5a455 100644
|
|
--- a/init.lua
|
|
+++ b/init.lua
|
|
@@ -187,3 +187,5 @@ if minetest.get_modpath("farming") then
|
|
end
|
|
|
|
|
|
+-- Patch for a planet alive
|
|
+dofile(path.."/apa_patch.lua")
|
|
diff --git a/settingtypes.txt b/settingtypes.txt
|
|
index 3864685..a28a034 100644
|
|
--- a/settingtypes.txt
|
|
+++ b/settingtypes.txt
|
|
@@ -1,3 +1,8 @@
|
|
+
|
|
+#
|
|
+# Turn this Value to true, if you want poison to persist after death
|
|
+water_life_poison_after_death (Poison stays after death) bool false
|
|
+
|
|
# all settings for client menu or in minetest.conf on servers
|
|
|
|
# -
|