Fix group detection, remove unnecessary setting to empty bucket
This commit is contained in:
parent
a1cbc91029
commit
00a34b173a
@ -254,8 +254,6 @@ minetest.register_craftitem("bucket:bucket_empty", {
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
itemstack = ItemStack("bucket:bucket_empty")
|
|
||||||
|
|
||||||
-- Node IO Support
|
-- Node IO Support
|
||||||
local usedef = ndef
|
local usedef = ndef
|
||||||
local defpref = "node_io_"
|
local defpref = "node_io_"
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
-- Node IO System
|
-- Node IO System
|
||||||
local nodeiodef = {
|
local nodeiodef = {
|
||||||
node_io_can_put_liquid = function (pos, node, side)
|
node_io_can_put_liquid = function (pos, node, side)
|
||||||
return ele.helpers.get_item_group(node.name, 'fluid_container')
|
return minetest.get_item_group(node.name, 'fluid_container') > 0
|
||||||
end,
|
end,
|
||||||
node_io_can_take_liquid = function (pos, node, side)
|
node_io_can_take_liquid = function (pos, node, side)
|
||||||
return ele.helpers.get_item_group(node.name, 'fluid_container')
|
return minetest.get_item_group(node.name, 'fluid_container') > 0
|
||||||
end,
|
end,
|
||||||
-- if false, transfer node should only put and take in 1000 increments
|
-- if false, transfer node should only put and take in 1000 increments
|
||||||
-- inventory nodes that don't accept milibuckets should:
|
-- inventory nodes that don't accept milibuckets should:
|
||||||
|
Loading…
Reference in New Issue
Block a user