1
0
Fork 0

Don't spawn arrow items in Creative Mode

This commit is contained in:
Wuzzy 2017-05-26 23:34:25 +02:00
parent 1b0e45835c
commit 5915e39d6f
1 changed files with 3 additions and 1 deletions

View File

@ -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
if not minetest.setting_getbool("creative_mode") then
minetest.add_item(self._lastpos, 'mcl_throwing:arrow')
end
self.object:remove()
end
end