Don't tick networking when no players are nearby

This commit is contained in:
DBotThePony 2022-10-07 18:19:27 +07:00
parent b8f9b2bc51
commit bbba317c45
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -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()