summaryrefslogtreecommitdiff
path: root/item_tweaks
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-01-31 19:39:31 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-01-31 19:39:31 -0500
commit39f5cba27eef35877c91291f518974f34130fcb6 (patch)
tree117a9d1b7d4ee5f78f73e1216e982c366ed9ecc6 /item_tweaks
parent2922421f4a88e56a0a1c819f62bf2bc287835388 (diff)
downloaddreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.tar
dreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.tar.gz
dreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.tar.bz2
dreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.tar.xz
dreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.zip
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 ;-)
Diffstat (limited to 'item_tweaks')
-rw-r--r--item_tweaks/item_drop.lua6
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