subnode bullshit
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user