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() { override fun broadcastChanges() {
super.broadcastChanges() // how did mojang missed this
matteryBroadcast() if (player is ServerPlayer) {
super.broadcastChanges()
matteryBroadcast()
}
} }
override fun broadcastFullState() { override fun broadcastFullState() {
synchronizerRemote.invalidate() // how did mojang missed this
super.broadcastFullState() if (player is ServerPlayer) {
matteryBroadcast() synchronizerRemote.invalidate()
super.broadcastFullState()
matteryBroadcast()
}
} }
override fun stillValid(player: Player): Boolean { override fun stillValid(player: Player): Boolean {