From 39f5cba27eef35877c91291f518974f34130fcb6 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Tue, 31 Jan 2017 19:39:31 -0500 Subject: Huge update - lots of mods: areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs, coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores, pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes, vines, worldedit, xban2, maybe some others I didn't think about ;-) --- item_tweaks/item_drop.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'item_tweaks') 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 -- cgit v1.2.3