broadcastChanges was called on client (even in vanilla code) all this time and found out only now :)

This commit is contained in:
DBotThePony 2024-09-02 18:44:52 +07:00
parent f254d68ec4
commit d7b7ab9a67
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -353,14 +353,20 @@ abstract class MatteryMenu(
}
override fun broadcastChanges() {
super.broadcastChanges()
matteryBroadcast()
// how did mojang missed this
if (player is ServerPlayer) {
super.broadcastChanges()
matteryBroadcast()
}
}
override fun broadcastFullState() {
synchronizerRemote.invalidate()
super.broadcastFullState()
matteryBroadcast()
// how did mojang missed this
if (player is ServerPlayer) {
synchronizerRemote.invalidate()
super.broadcastFullState()
matteryBroadcast()
}
}
override fun stillValid(player: Player): Boolean {