From 51ab54bcfa42a775a1fcfe1c55f86ca9d5221138 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 26 Nov 2018 17:48:17 +0000 Subject: [PATCH] remove self.gotten flip when using replace function, use on_replace inside mob def --- api.lua | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/api.lua b/api.lua index 5f303d8..6da7037 100644 --- a/api.lua +++ b/api.lua @@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi") mobs = { mod = "redo", - version = "20181102", + version = "20181126", intllib = S, invis = minetest.global_exists("invisibility") and invisibility or {}, } @@ -1154,14 +1154,7 @@ local replace = function(self, pos) end if on_replace_return ~= false then - minetest.set_node(pos, {name = with}) - - -- when cow/sheep eats grass, replace wool and milk - if self.gotten == true then - self.gotten = false - self.object:set_properties(self) - end end end end