Skip to content

Commit

Permalink
refactor(spigot): remove leftover field from bossbar refactor
Browse files Browse the repository at this point in the history
Relates to fdcbbc4
  • Loading branch information
diogotcorreia committed Jun 19, 2024
1 parent a9fab60 commit ba81641
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public class ProtocolLibListener implements PacketListener, PacketInterceptor {
private final Class<?> MERCHANT_RECIPE_LIST_CLASS;
private final MethodAccessor CRAFT_MERCHANT_RECIPE_FROM_BUKKIT_METHOD;
private final MethodAccessor CRAFT_MERCHANT_RECIPE_TO_MINECRAFT_METHOD;
private final Class<?> BOSSBAR_UPDATE_TITLE_ACTION_CLASS;
private final Class<BaseComponent[]> BASE_COMPONENT_ARRAY_CLASS = BaseComponent[].class;
private final Class<?> ADVENTURE_COMPONENT_CLASS;
private final Optional<Class<?>> NUMBER_FORMAT_CLASS;
Expand Down Expand Up @@ -112,11 +111,9 @@ public ProtocolLibListener(SpigotMLP main, HandlerFunction.HandlerType... allowe
CRAFT_MERCHANT_RECIPE_TO_MINECRAFT_METHOD = null;
}
if (MinecraftVersion.CAVES_CLIFFS_1.atOrAbove()) { // 1.17+
BOSSBAR_UPDATE_TITLE_ACTION_CLASS = NMSUtils.getClass("net.minecraft.network.protocol.game.PacketPlayOutBoss$e");
MERCHANT_RECIPE_SPECIAL_PRICE_FIELD = "g";
MERCHANT_RECIPE_DEMAND_FIELD = "h";
} else {
BOSSBAR_UPDATE_TITLE_ACTION_CLASS = null;
MERCHANT_RECIPE_SPECIAL_PRICE_FIELD = "specialPrice";
MERCHANT_RECIPE_DEMAND_FIELD = "demand";
}
Expand Down

0 comments on commit ba81641

Please sign in to comment.