todo: stuff

This commit is contained in:
2026-04-29 21:58:43 +03:00
parent 424f77ba10
commit 710547a014
3 changed files with 40 additions and 0 deletions

View File

@@ -38,6 +38,9 @@ class CableEntity(pos: BlockPos, state: BlockState) : SingleDeviceBlockEntity(Bl
for (dir in Direction.entries) {
val ent = level!!.getBlockEntity(blockPos.relative(dir))
level!!.setBlockAndUpdate(blockPos, blockState.setValue(getPropByDirection(dir), CableBlock.shouldConnect(blockPos, blockPos.relative(dir), level!!)))
if(ent is CableEntity) {
ent.connectionsAreDirty = true
}
}
}
}