Fix group detection, remove unnecessary setting to empty bucket

This commit is contained in:
Evert Prants 2018-08-25 10:41:43 +03:00
parent a1cbc91029
commit 00a34b173a
No known key found for this signature in database
GPG Key ID: 1688DA83D222D0B5
2 changed files with 2 additions and 4 deletions

@ -254,8 +254,6 @@ minetest.register_craftitem("bucket:bucket_empty", {
return
end
itemstack = ItemStack("bucket:bucket_empty")
-- Node IO Support
local usedef = ndef
local defpref = "node_io_"

@ -2,10 +2,10 @@
-- Node IO System
local nodeiodef = {
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,
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,
-- if false, transfer node should only put and take in 1000 increments
-- inventory nodes that don't accept milibuckets should: