This commit is contained in:
2026-04-24 15:07:17 +02:00
6 changed files with 48 additions and 10 deletions

View File

@@ -262,6 +262,9 @@ class CaseBlockEntity(blockPos: BlockPos, blockState: BlockState): NodeBlockEnti
super.tickNode(level)
if(!level.isClientSide) {
if (isRunning()) {
if(getMachineComponentsUsed() > getMachineComponentsTotal()) {
crash("too many components")
}
if (!node.consumeEnergy(1)) {
crash("out of energy")
}