container.add(stack);
}
static boolean merge(ItemStack stackInternal, ItemStack stackExternal, BiFunction<Long, Long, Long> func) {
if (ItemStackHelper.isItemEqual(stackExternal, stackInternal)) {
if (NBT.getType(stackExternal) == NBT.getType(stackInternal)) {
<BUG>NBT.setData(stackInternal, NBT.getType(stackInternal), func.apply(NBT.getAmount(stackExternal), NBT.getAmount(stackInternal)));
</BUG>
return true;
} else if (NBT.getType(stackExternal) == EnumStackAmountType.FLUID || NBT.getType(stackInternal) == EnumStackAmountType.FLUID) {
return false;

container.add(stack);
}
static boolean merge(ItemStack stackInternal, ItemStack stackExternal, BiFunction<Long, Long, Long> func) {
if (ItemStackHelper.isItemEqual(stackExternal, stackInternal)) {
if (NBT.getType(stackExternal) == NBT.getType(stackInternal)) {
NBT.setData(stackInternal, NBT.getType(stackInternal), func.apply(NBT.getAmount(stackInternal), NBT.getAmount(stackExternal)));
return true;
} else if (NBT.getType(stackExternal) == EnumStackAmountType.FLUID || NBT.getType(stackInternal) == EnumStackAmountType.FLUID) {
return false;
