Skip to content

Commit

Permalink
Fixed 1.7 compatibility issue.
Browse files Browse the repository at this point in the history
Fixed crafting table button not working.
  • Loading branch information
BenWoodworth committed Apr 14, 2016
1 parent de069ea commit 41b0d68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ private boolean btnCraftingMultiplierClick(GUIButton.Click info) {
}

private boolean btnWorkbenchClick(GUIButton.Click info) {
FastCraft.playerManager().openWorkbench(info.event.getWhoClicked(), location, false);
FastCraft.playerManager().openWorkbench(info.event.getWhoClicked(), location, location == null);
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,9 @@ public void onInventoryOpen(InventoryOpenEvent e) {

// Open GUI in one tick
final Player player = (Player) humanEntity;
final Location location = inv.getLocation();
new BukkitRunnable() {
public void run() {
new GUIFastCraft(player, location).show();
new GUIFastCraft(player, null).show(); // TODO non-null location
}
}.runTask(FastCraft.getInstance());
}
Expand Down

0 comments on commit 41b0d68

Please sign in to comment.