Commented on now dead code which happens to be public.

This commit is contained in:
YannickMG authored and Martin Robertz committed 2024-01-13 10:31:06 +01:00
1 parent f5e67dd529
commit ae7a5e22d6
1 file changed
+6
@@ -216,6 +216,12 @@ public class LavaTankBlock extends BlockContainer {
}
}
/**
* This was probably not meant to be public and should ideally be removed. It's a direct copy of code found in
* buildcraft.core.lib.inventory.InvUtils.
* <p>
* In any case it is no longer useful here.
*/
public static ItemStack consumeItem(ItemStack stack) {
if (stack.stackSize == 1) {
if (stack.getItem().hasContainerItem()) return stack.getItem().getContainerItem(stack);