forked from RepoMirrors/kami-blue
inventoryviewer allow minimization
This commit is contained in:
parent
7303e91066
commit
4239c20fb9
|
@ -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("");
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue