From 567010673e06a751a481d3fbc75c3ee7708f0d1c Mon Sep 17 00:00:00 2001 From: AlexTheCoder Date: Sun, 27 Jul 2014 19:47:14 -0400 Subject: [PATCH] Patched bending in any faction land Fixed the bug where a player could bend in any faction's land, regardless on whether they could build there. --- .classpath | 18 +++++++++--------- src/com/projectkorra/ProjectKorra/Methods.java | 18 +++--------------- 2 files changed, 12 insertions(+), 24 deletions(-) diff --git a/.classpath b/.classpath index 6b746735..22c736b4 100644 --- a/.classpath +++ b/.classpath @@ -1,15 +1,15 @@ - - + + - - - - - - - + + + + + + + diff --git a/src/com/projectkorra/ProjectKorra/Methods.java b/src/com/projectkorra/ProjectKorra/Methods.java index 7107d915..5b7e1a21 100644 --- a/src/com/projectkorra/ProjectKorra/Methods.java +++ b/src/com/projectkorra/ProjectKorra/Methods.java @@ -1578,23 +1578,11 @@ public class Methods { } if (fcp != null && mcore != null && respectFactions) { - if (ignite.contains(ability)) { - - } - - if (explode.contains(ability)) { - - } - - if (!FactionsListenerMain.canPlayerBuildAt(player, - PS.valueOf(loc.getBlock()), false)) { + if (!FactionsListenerMain.canPlayerBuildAt(player, PS.valueOf(loc.getBlock()), false)) { return true; + }else{ + return false; } - - // if (!FactionsBlockListener.playerCanBuildDestroyBlock(player, - // location, "build", true)) { - // return true; - // } } if (twnp != null && respectTowny) {