Dont allow batteries to charge other batteries in the inv. Fixes https://github.com/TechReborn/TechReborn/issues/2297
This commit is contained in:
parent
c4d9b43832
commit
2ea779acd1
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ public class BatteryItem extends Item implements EnergyHolder, ItemDurabilityExt
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (entity instanceof PlayerEntity) {
|
if (entity instanceof PlayerEntity) {
|
||||||
ItemUtils.distributePowerToInventory((PlayerEntity) entity, stack, tier.getMaxOutput());
|
ItemUtils.distributePowerToInventory((PlayerEntity) entity, stack, tier.getMaxOutput(), (testStack) -> !(testStack.getItem() instanceof BatteryItem));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue