Don't tick networking when no players are nearby
This commit is contained in:
parent
b8f9b2bc51
commit
bbba317c45
@ -285,7 +285,7 @@ abstract class SynchronizedBlockEntity(p_155228_: BlockEntityType<*>, p_155229_:
|
||||
|
||||
if (ref == null) {
|
||||
listIterator.remove()
|
||||
} else {
|
||||
} else if (ref.players.isNotEmpty()) {
|
||||
var hitObservers = false
|
||||
val blockIterator = ref.observingBlockEntities.listIterator()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user