Cables are working

This commit is contained in:
drcrazy 2019-07-26 02:37:02 +03:00
parent 0dc2636046
commit 316def3086
2 changed files with 128 additions and 43 deletions

View file

@ -212,7 +212,7 @@ public class BlockCable extends BlockWithEntity {
}
CableBlockEntity blockEntityCable = (CableBlockEntity) blockEntity;
if (blockEntityCable.power <= 0) {
if (blockEntityCable.getEnergy() <= 0) {
return;
}