nodecore-cd2025/mods/nc_api/item_liquid_stack.lua
Aaron Suen 0e0a423e7e Make all liquids never exist as item stacks
Any liquids that are dropped should become
placed nodes.  It was observed before this that
wet concrete may have been displaced in such
a way that it created a stack node; this ensures
such things are precluded as much as possible.
2021-08-06 21:20:45 -04:00

13 lines
426 B
Lua

-- LUALOCALS < ---------------------------------------------------------
local nodecore
= nodecore
-- LUALOCALS > ---------------------------------------------------------
nodecore.register_on_register_item(function(_, def)
if def.liquidtype and def.liquidtype ~= "none" then
def.groups = def.groups or {}
def.groups.stack_as_node = def.groups.stack_as_node or 1
def.stack_max = def.stack_max or 1
end
end)