Skip to content

Commit

Permalink
Fixed a conflict between the special compass and the compass of Spect…
Browse files Browse the repository at this point in the history
…atorPlus
  • Loading branch information
AmauryCarrade committed Jul 23, 2014
1 parent cddcf23 commit 4a08027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/me/azenet/UHPlugin/UHPluginListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ public void onFoodUpdate(FoodLevelChangeEvent ev) {
@SuppressWarnings("deprecation")
@EventHandler
public void onPlayerInteract(PlayerInteractEvent ev) {
if ((ev.getAction() == Action.RIGHT_CLICK_AIR || ev.getAction() == Action.RIGHT_CLICK_BLOCK) && ev.getPlayer().getItemInHand().getType() == Material.COMPASS && p.getConfig().getBoolean("gameplay-changes.compass")) {
if ((ev.getAction() == Action.RIGHT_CLICK_AIR || ev.getAction() == Action.RIGHT_CLICK_BLOCK) && ev.getPlayer().getItemInHand().getType() == Material.COMPASS && p.getConfig().getBoolean("gameplay-changes.compass") && !p.getGameManager().isPlayerDead(ev.getPlayer().getName())) {
Player pl = ev.getPlayer();
Boolean foundRottenFlesh = false;
for (ItemStack is : pl.getInventory().getContents()) {
Expand Down

0 comments on commit 4a08027

Please sign in to comment.