Skip to content

Commit

Permalink
convert remove_items to avoid crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
hdastwb committed Jul 20, 2013
1 parent acef4b1 commit 17f3ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion item_drop/item_entity.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ minetest.register_entity(":__builtin:item", {
end,

on_step = function(self, dtime)
local time = minetest.setting_get("remove_items")
local time = tonumber(minetest.setting_get("remove_items"))
if not time then
time = 300
end
Expand Down

0 comments on commit 17f3ce2

Please sign in to comment.