1.7.10 player kicked when clicking specific items in menu on 1.8.8 server
jtJava opened this issue ยท 3 comments
/viaversion dump
Output
https://dump.viaversion.com/f4978ea8ff7887f0a88ed88ac2a056893fe618ac6464f22d5750d9be02fbecc5
Console Error
https://hastebin.skyra.pw/gujiyosovu.prolog
https://mclo.gs/CPI9jnT
Bug Description
Clicking on the following itemstack in a menu causes the client to be disconnected.
Colors class is just legacy format coloring
@Override
public ItemStack getDisplayedItem(Player player) {
// If slot is not open we display a barrier block with rank message
if (!this.openSlot) {
return new ItemBuilder(Material.BARRIER)
.name(Colors.GRAY + "Create Custom Difficulty " + (this.difficultyIndex + 1))
.lore("",
Colors.PRIMARY + "Only " + Colors.AQUA + "Premium" + Colors.PRIMARY + " players can",
Colors.PRIMARY + "create multiple custom difficulties!")
.build();
}
ArenaProfile profile = Profiles.getProfile(ArenaProfile.class, player);
BotProperties properties = profile.getCustomDifficultyProperties(this.difficultyIndex);
if (properties == null) {
return new ItemBuilder(Material.OAK_SIGN)
.name(Colors.PRIMARY + "Create Custom Difficulty " + (this.difficultyIndex + 1))
.lore("",
Colors.GREEN + Colors.B + "Click to create!").build();
} else {
return new ItemBuilder(Material.WRITTEN_BOOK)
.name(Colors.PRIMARY + "Custom Difficulty " + Colors.SECONDARY + properties.getNamePrefix())
.lore("",
Colors.GREEN + Colors.B + "Left-click to play!",
Colors.GRAY + Colors.I + "Right-click to edit.",
Colors.GRAY + Colors.I + "Shift-click to delete.")
.flags()
.build();
}
}
Steps to Reproduce
- Join pvp.land with 1.7.10 client
- Join arena server
- Open bot menu using gold sword in inventory
- Create a custom bot if one does not exist (Click the sign and then click the back button in bottom right)
- Left, right, or shift click the custom bot item
Expected Behavior
Player should not be disconnected due to a netty error
Additional Server Info
No response
Checklist
- Via plugins are only running on EITHER the backend servers (e.g. Paper) OR the proxy (e.g. BungeeCord), not on both.
- I have included a ViaVersion dump.
- If applicable, I have included a paste (not a screenshot) of the error.
- I have tried the latest build(s) from https://ci.viaversion.com/ and the issue still persists.