diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-03-14 00:04:17 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-03-14 00:04:17 -0400 |
commit | 6885943d0491db83268f8bb4743bfd82ed725ea2 (patch) | |
tree | 4be2bba618fe67d1b99a99f9aedf1a0f397a9c9c /technic/machines/HV | |
parent | a46f07cbfbd9ae59b7b1cc2fc32f68c39ae34de0 (diff) | |
download | dreambuilder_modpack-6885943d0491db83268f8bb4743bfd82ed725ea2.tar dreambuilder_modpack-6885943d0491db83268f8bb4743bfd82ed725ea2.tar.gz dreambuilder_modpack-6885943d0491db83268f8bb4743bfd82ed725ea2.tar.bz2 dreambuilder_modpack-6885943d0491db83268f8bb4743bfd82ed725ea2.tar.xz dreambuilder_modpack-6885943d0491db83268f8bb4743bfd82ed725ea2.zip |
update coloredwood, digilines, technic, gloopblocks, homedecor, mesecons,
pipeworks, player_textures, signs_lib, unifieddyes, and worldedit
Diffstat (limited to 'technic/machines/HV')
-rw-r--r-- | technic/machines/HV/quarry.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/technic/machines/HV/quarry.lua b/technic/machines/HV/quarry.lua index 8255676..8d87b65 100644 --- a/technic/machines/HV/quarry.lua +++ b/technic/machines/HV/quarry.lua @@ -12,6 +12,7 @@ minetest.register_craft({ local quarry_dig_above_nodes = 3 -- How far above the quarry we will dig nodes local quarry_max_depth = 100 local quarry_demand = 10000 +local quarry_eject_dir = vector.new(0, 1, 0) local function set_quarry_formspec(meta) local radius = meta:get_int("size") @@ -83,7 +84,7 @@ local function quarry_handle_purge(pos) if stack then local item = stack:to_table() if item then - technic.tube_inject_item(pos, pos, vector.new(0, 1, 0), item) + technic.tube_inject_item(pos, pos, quarry_eject_dir, item) stack:clear() inv:set_stack("cache", i, stack) break @@ -217,6 +218,16 @@ minetest.register_node("technic:quarry", { connect_sides = {"bottom", "front", "left", "right"}, tube = { connect_sides = {top = 1}, + -- lower priority than other tubes, so that quarries will prefer any + -- other tube to another quarry, which could lead to server freezes + -- in certain quarry placements (2x2 for example would never eject) + priority = 10, + can_go = function(pos, node, velocity, stack) + -- always eject the same, even if items came in another way + -- this further mitigates loops and generally avoids random sideway movement + -- that can be expected in certain quarry placements + return { quarry_eject_dir } + end }, on_construct = function(pos) local meta = minetest.get_meta(pos) |