mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-04 12:51:09 -05:00
Allow icon in advancement to be null
Sometimes the server does not send over an icon, and when one is not sent over, the player is kicked through MCProtocolLib because this was null
This commit is contained in:
parent
634635ef31
commit
d335d5f4bc
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ public class Advancement {
|
|||
public static class DisplayData {
|
||||
private final @NonNull Message title;
|
||||
private final @NonNull Message description;
|
||||
private final @NonNull ItemStack icon;
|
||||
private final ItemStack icon;
|
||||
private final @NonNull FrameType frameType;
|
||||
private final boolean showToast;
|
||||
private final boolean hidden;
|
||||
|
@ -42,7 +42,7 @@ public class Advancement {
|
|||
private final float posY;
|
||||
private final String backgroundTexture;
|
||||
|
||||
public DisplayData(@NonNull Message title, @NonNull Message description, @NonNull ItemStack icon, @NonNull FrameType frameType,
|
||||
public DisplayData(@NonNull Message title, @NonNull Message description, ItemStack icon, @NonNull FrameType frameType,
|
||||
boolean showToast, boolean hidden, float posX, float posY) {
|
||||
this(title, description, icon, frameType, showToast, hidden, posX, posY, null);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue