Delay cable blockstate update by 4 ticks
This commit is contained in:
parent
9107f63d9d
commit
d19de3facf
@ -165,7 +165,7 @@ abstract class EnergyCableBlockEntity(type: BlockEntityType<*>, blockPos: BlockP
|
|||||||
if (!SERVER_IS_LIVE) return
|
if (!SERVER_IS_LIVE) return
|
||||||
val level = level
|
val level = level
|
||||||
|
|
||||||
level?.once {
|
level?.once(4) {
|
||||||
if (!node.isValid) return@once
|
if (!node.isValid) return@once
|
||||||
|
|
||||||
val newState = blockState
|
val newState = blockState
|
||||||
|
Loading…
Reference in New Issue
Block a user