X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=mods%2Fredstone%2Fspace_maker.lua;h=b56dbef40acae1ab14b0af1111c1e238edb6410b;hb=89749a4eaaff1410f666396c668f92214a74c72d;hp=294127a3aeee34fe550d03e3a6d4f8f21b4ce041;hpb=992f3b08367dd07eeb5fff2c66460d5a02dd29d8;p=Crafter.git diff --git a/mods/redstone/space_maker.lua b/mods/redstone/space_maker.lua index 294127a..b56dbef 100644 --- a/mods/redstone/space_maker.lua +++ b/mods/redstone/space_maker.lua @@ -48,10 +48,12 @@ minetest.register_node("redstone:space", { pos.y = pos.y + 1 for _,item in pairs(items) do local obj = minetest.add_item(pos,item) - local x=math.random(-2,2)*math.random() - local y=math.random(2,5) - local z=math.random(-2,2)*math.random() - obj:setvelocity({x=x, y=y, z=z}) + --local x=math.random(-2,2)*math.random() + --local y=math.random(2,5) + --local z=math.random(-2,2)*math.random() + --if obj and obj:get_luaentity() then + -- obj:setvelocity({x=x, y=y, z=z}) + --end end end,