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
|
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 a new issue