Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CherryPick #1319 to Trials to fix Invalid payload REGISTER (fix #1333) #1437

Merged
merged 1 commit into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"PotionEffectTypeMixin",
"RecipeIteratorMixin",
"Registry_SimpleRegistryMixin",
"StandardMessengerMixin",
"WatchdogThreadMixin"
]
}
Loading