From 604fe2083d70fea92b6c53c9a9d1c1ffdcb36610 Mon Sep 17 00:00:00 2001 From: Paramat Date: Tue, 12 Sep 2017 23:01:50 +0100 Subject: [PATCH] Item drop: Tune to land exactly 2 nodes away with level view (#6410) --- builtin/game/item.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builtin/game/item.lua b/builtin/game/item.lua index 2c7200524..03eee3a61 100644 --- a/builtin/game/item.lua +++ b/builtin/game/item.lua @@ -426,9 +426,9 @@ function core.item_drop(itemstack, dropper, pos) local item = itemstack:take_item(cnt) local obj = core.add_item(p, item) if obj then - dir.x = dir.x * 2 - dir.y = dir.y * 2 + 2 - dir.z = dir.z * 2 + dir.x = dir.x * 2.9 + dir.y = dir.y * 2.9 + 2 + dir.z = dir.z * 2.9 obj:set_velocity(dir) obj:get_luaentity().dropped_by = dropper:get_player_name() return itemstack