Don't spawn arrow items in Creative Mode
parent
1b0e45835c
commit
5915e39d6f
|
@ -121,7 +121,9 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
|
||||||
if self._lastpos.x~=nil then
|
if self._lastpos.x~=nil then
|
||||||
local def = minetest.registered_nodes[node.name]
|
local def = minetest.registered_nodes[node.name]
|
||||||
if (def and def.walkable) or not def then
|
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')
|
minetest.add_item(self._lastpos, 'mcl_throwing:arrow')
|
||||||
|
end
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue