mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-29 14:01:07 +01:00
Don't spawn arrow items in Creative Mode
This commit is contained in:
parent
1b0e45835c
commit
5915e39d6f
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue