Fix AppleCore's reflection

AppleCore accesses `getStackMouseOver` via reflection but it has been moved to the `PanelWidget` class -> the reflection fails
This commit is contained in:
glowredman authored and Jason Mitchell committed 2022-05-16 10:40:12 -07:00
1 parent d735cc2a38
commit 72d44fd711
2 files changed
+73 -49

No files matched your search

@@ -14,6 +14,7 @@ public class ItemPanel extends PanelWidget
/**
* Backwards compat :-/
*/
@SuppressWarnings("unused")
@Deprecated
private int itemsPerPage = 0;
@@ -22,6 +23,11 @@ public class ItemPanel extends PanelWidget
@Deprecated
public ArrayList<ItemStack> realItems = new ArrayList<>();
public ItemStack getStackMouseOver(int mousex, int mousey) {
// *looks angrily at AppleCore*
return super.getStackMouseOver(mousex, mousey);
};
public Button more;
public Button less;