Don't remove throwables in creative

This commit is contained in:
Wuzzy 2017-01-26 18:50:06 +01:00
parent 92c68792e2
commit a7ed0520b5
2 changed files with 5 additions and 1 deletions

View file

@ -16,7 +16,9 @@ local throw_function = function (entity_name, velocity)
obj:setvelocity({x=dir.x*velocity, y=dir.y*velocity, z=dir.z*velocity})
obj:setacceleration({x=dir.x*-3, y=-GRAVITY, z=dir.z*-3})
obj:get_luaentity()._thrower = player:get_player_name()
item:take_item()
if not minetest.setting_getbool("creative_mode") then
item:take_item()
end
return item
end
return func