Add temporary check to prevent multiple buckets from getting overwritten

This commit is contained in:
Evert Prants 2018-04-04 20:59:52 +03:00
parent 0d89ef920a
commit ba9934d225
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 2 additions and 2 deletions

View File

@ -289,7 +289,7 @@ local function caster_node_timer(pos, elapsed)
-- Handle bucket output, only allow empty buckets in this slot -- Handle bucket output, only allow empty buckets in this slot
local bucket_out = inv:get_stack("bucket_out", 1):get_name() local bucket_out = inv:get_stack("bucket_out", 1):get_name()
if bucket_out == "bucket:bucket_empty" and metal ~= "" then if bucket_out == "bucket:bucket_empty" and metal ~= "" and inv:get_stack("bucket_out", 1):get_count() == 1 then
local bucket = fluidity.get_bucket_for_fluid(metal) local bucket = fluidity.get_bucket_for_fluid(metal)
if metal_count >= 1000 then if metal_count >= 1000 then
metal_count = metal_count - 1000 metal_count = metal_count - 1000

View File

@ -226,7 +226,7 @@ local function melter_node_timer(pos, elapsed)
-- Handle bucket output, only allow empty buckets in this slot -- Handle bucket output, only allow empty buckets in this slot
local bucket_out = inv:get_stack("bucket_out", 1):get_name() local bucket_out = inv:get_stack("bucket_out", 1):get_name()
if bucket_out == "bucket:bucket_empty" and metal ~= "" then if bucket_out == "bucket:bucket_empty" and metal ~= "" and inv:get_stack("bucket_out", 1):get_count() == 1 then
local bucket = fluidity.get_bucket_for_fluid(metal) local bucket = fluidity.get_bucket_for_fluid(metal)
if metal_count >= 1000 then if metal_count >= 1000 then
metal_count = metal_count - 1000 metal_count = metal_count - 1000