Fix "Invalid payload REGISTER" error when login (#1319)
Some checks failed
Build / build (push) Failing after 33m59s
Some checks failed
Build / build (push) Failing after 33m59s
This commit is contained in:
parent
52ab6e5e52
commit
1aa83cca02
|
@ -0,0 +1,19 @@
|
|||
package io.izzel.arclight.common.mixin.bukkit;
|
||||
|
||||
import org.bukkit.plugin.messaging.Messenger;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
import org.bukkit.plugin.messaging.StandardMessenger;
|
||||
|
||||
@Mixin(value=StandardMessenger.class, remap = false)
|
||||
public abstract class StandardMessengerMixin implements Messenger {
|
||||
|
||||
@ModifyConstant(
|
||||
method = "validateAndCorrectChannel",
|
||||
constant = @Constant(intValue = Messenger.MAX_CHANNEL_SIZE)
|
||||
)
|
||||
private static int modifyMaxChannelSize(int original) {
|
||||
return 256;
|
||||
}
|
||||
}
|
|
@ -47,6 +47,7 @@
|
|||
"PotionEffectTypeMixin",
|
||||
"RecipeIteratorMixin",
|
||||
"Registry_SimpleRegistryMixin",
|
||||
"StandardMessengerMixin",
|
||||
"WatchdogThreadMixin"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user