fix bookmark group with groupIds bigger than 127

This commit is contained in:
slprime committed 2024-08-06 08:24:33 +03:00
1 parent 3b3227b09d
commit 89bf12611c
1 file changed
+3 -3
@@ -195,12 +195,12 @@ public class BookmarkPanel extends PanelWidget {
protected static class ItemStackMetadata {
public int factor;
public Integer groupId;
public int groupId;
public BookmarkRecipeId recipeId;
public boolean ingredient = false;
public boolean fluidDisplay = false;
public ItemStackMetadata(BookmarkRecipeId recipeId, int factor, boolean ingredient, Integer groupId,
public ItemStackMetadata(BookmarkRecipeId recipeId, int factor, boolean ingredient, int groupId,
boolean fluidDisplay) {
this.recipeId = recipeId;
this.factor = factor;
@@ -209,7 +209,7 @@ public class BookmarkPanel extends PanelWidget {
this.fluidDisplay = fluidDisplay;
}
public ItemStackMetadata(BookmarkRecipeId recipeId, NBTTagCompound nbTag, boolean ingredient, Integer groupId) {
public ItemStackMetadata(BookmarkRecipeId recipeId, NBTTagCompound nbTag, boolean ingredient, int groupId) {
this(recipeId, nbTag.getInteger("Count"), ingredient, groupId, nbTag.hasKey("gtFluidName"));
}