Add temporary check to prevent multiple buckets from getting overwritten
This commit is contained in:
parent
0d89ef920a
commit
ba9934d225
@ -289,7 +289,7 @@ local function caster_node_timer(pos, elapsed)
|
||||
|
||||
-- Handle bucket output, only allow empty buckets in this slot
|
||||
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)
|
||||
if metal_count >= 1000 then
|
||||
metal_count = metal_count - 1000
|
||||
|
@ -226,7 +226,7 @@ local function melter_node_timer(pos, elapsed)
|
||||
|
||||
-- Handle bucket output, only allow empty buckets in this slot
|
||||
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)
|
||||
if metal_count >= 1000 then
|
||||
metal_count = metal_count - 1000
|
||||
|
Loading…
Reference in New Issue
Block a user