Fixed EventException in Essentials Home Patches

This commit is contained in:
Driftay 2019-03-22 23:16:51 -04:00
parent b1afbbf8df
commit 88b55ea866

View File

@ -500,7 +500,7 @@ public class FactionsPlayerListener implements Listener {
boolean isHome = false; boolean isHome = false;
for (String str : SavageFactions.plugin.ess.getUser(event.getPlayer()).getHomes()) { for (String str : SavageFactions.plugin.ess.getUser(event.getPlayer()).getHomes()) {
Location home = SavageFactions.plugin.ess.getUser(event.getPlayer()).getHome(str); Location home = SavageFactions.plugin.ess.getUser(event.getPlayer()).getHome(str);
if (home.getBlockX() == event.getTo().getBlockX() && home.getBlockY() == event.getTo().getBlockY() && home.getBlockZ() == event.getTo().getBlockZ()) { if (home.getBlockX() == event.getTo().getBlockX() && home.getBlockZ() == event.getTo().getBlockZ()) {
isHome = true; isHome = true;
} }
} }