subnode bullshit

This commit is contained in:
2026-04-12 00:16:52 +02:00
parent f456b9b04e
commit 59358e6b08
4 changed files with 14 additions and 4 deletions

View File

@@ -40,8 +40,7 @@ class CapacitorEntity(pos: BlockPos, state: BlockState) : NodeEntity(BlockEntiti
class CapacitorBlock : BaseBlock("capacitor"), EntityBlock {
override fun newBlockEntity(blockPos: BlockPos, blockState: BlockState): BlockEntity? {
val cap = CapacitorEntity(blockPos, blockState)
cap.syncReachable()
Networking.addNode(cap.getNode())
cap.initNetworking()
return cap
}

View File

@@ -26,7 +26,7 @@ class ScreenBlock() : BaseBlock("screen"), EntityBlock {
override fun newBlockEntity(blockPos: BlockPos, blockState: BlockState): BlockEntity? {
val scr = ScreenEntity(blockPos, blockState)
Networking.addNode(scr.getNode())
scr.initNetworking()
return scr
}