Don't spawn arrow items in Creative Mode
This commit is contained in:
parent
1b0e45835c
commit
5915e39d6f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user