broadcastChanges was called on client (even in vanilla code) all this time and found out only now :)
This commit is contained in:
parent
f254d68ec4
commit
d7b7ab9a67
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user