Commits

fonkfader  committed 77ded65

remove checks for some inventory views

  • Participants
  • Parent commits fdb9863

Comments (0)

Files changed (3)

File bin/me/fonkfader/EmeraldEconLink/Checks$4.class

Binary file modified.

File bin/me/fonkfader/EmeraldEconLink/Checks.class

Binary file modified.

File src/me/fonkfader/EmeraldEconLink/Checks.java

 						if (!Configuration.DisabledWorlds.contains(p.getWorld()
 								.getName())) {
 
+							if (p.getOpenInventory().getType() == InventoryType.WORKBENCH) {
+								return;
+
+							}
+							if (p.getOpenInventory().getType() == InventoryType.ANVIL) {
+								return;
+
+							}
+							if (p.getOpenInventory().getType() == InventoryType.MERCHANT) {
+								return;
+
+							}
+							
 							if (((bal2 / Collections
 									.min(Configuration.itemsCost))
 									* Collections.min(Configuration.itemsCost) != bal2)