diff options
Diffstat (limited to 'item_tweaks')
-rw-r--r-- | item_tweaks/item_drop.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/item_tweaks/item_drop.lua b/item_tweaks/item_drop.lua index aa0e9d0..7f030db 100644 --- a/item_tweaks/item_drop.lua +++ b/item_tweaks/item_drop.lua @@ -188,6 +188,12 @@ if minetest.setting_get("enable_item_pickup") == "true" then playerPosition.y = playerPosition.y + 0.5 local inv = player:get_inventory() + for _,i in ipairs({"x","y","z"}) do + if playerPosition[i] > 31000 or playerPosition[i] < -31000 then + return + end + end + for _, object in ipairs(minetest.get_objects_inside_radius(playerPosition, 3)) do if isGood(object) and (object:get_luaentity().dropped_by ~= player:get_player_name() or object:get_luaentity().age > 3) and inv and |