inventoryviewer allow minimization

This commit is contained in:
Bella 2020-03-26 10:35:10 -04:00
parent 7303e91066
commit 4239c20fb9
No known key found for this signature in database
GPG Key ID: 815562EA23BFE344
2 changed files with 2 additions and 2 deletions

View File

@ -250,7 +250,7 @@ public class KamiGUI extends GUI {
*/
frame = new Frame(getTheme(), new Stretcherlayout(1), "Inventory Viewer");
frame.setCloseable(false);
frame.setMinimizeable(false);
frame.setMinimizeable(true);
frame.setPinnable(true);
frame.setPinned(true);
Label inventory = new Label("");

View File

@ -109,7 +109,7 @@ public class InventoryViewer extends Module {
Frame frame = getFrameByName("inventory viewer");
if (frame == null)
return;
if (frame.isPinned()) {
if (frame.isPinned() && !frame.isMinimized()) {
final NonNullList<ItemStack> items = mc.player.inventory.mainInventory;
boxRender(frame.getX(), frame.getY());
itemRender(items, frame.getX(), frame.getY());