Use new Minetest settings API syntax for most mods

This commit is contained in:
Wuzzy 2017-08-09 16:17:00 +02:00
parent 6fa426741e
commit e5a34367c9
41 changed files with 86 additions and 86 deletions

View file

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