From 5915e39d6f92ff60c53c09c8d72e762ed72d10cf Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 26 May 2017 23:34:25 +0200 Subject: [PATCH] Don't spawn arrow items in Creative Mode --- mods/ITEMS/mcl_throwing/arrow.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_throwing/arrow.lua b/mods/ITEMS/mcl_throwing/arrow.lua index dc1e474296..a1f19c146e 100644 --- a/mods/ITEMS/mcl_throwing/arrow.lua +++ b/mods/ITEMS/mcl_throwing/arrow.lua @@ -121,7 +121,9 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime) if self._lastpos.x~=nil then local def = minetest.registered_nodes[node.name] if (def and def.walkable) or not def then - minetest.add_item(self._lastpos, 'mcl_throwing:arrow') + if not minetest.setting_getbool("creative_mode") then + minetest.add_item(self._lastpos, 'mcl_throwing:arrow') + end self.object:remove() end end