From 40e6b7e165140814fc686048d79faf2b0849ea6b Mon Sep 17 00:00:00 2001 From: Sauilitired Date: Tue, 28 Oct 2014 11:07:12 +0100 Subject: [PATCH] Temp. "fix" --- .../com/intellectualcrafters/plot/PWE.java | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/PWE.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/PWE.java index 4ce136aeb..a2b4f7a67 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/PWE.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/PWE.java @@ -17,6 +17,7 @@ import com.sk89q.worldedit.regions.CuboidRegion; */ public class PWE { + @SuppressWarnings("deprecation") public static void setMask(Player p, Location l) { try { LocalSession s; @@ -75,24 +76,26 @@ public class PWE { } } + @SuppressWarnings("unused") public static boolean noMask(LocalSession s) { - try { - com.sk89q.worldedit.masks.Mask mask = s.getMask(); - return mask == null; - } - catch (Throwable e) { - return true; - } +// try { +// com.sk89q.worldedit.masks.Mask mask = s.getMask(); +// return mask == null; +// } +// catch (Throwable e) { +// return true; +// } + return true; } public static void removeMask(Player p, LocalSession s) { - try { - s.setMask(null); - } - catch (Throwable e) { - com.sk89q.worldedit.masks.Mask mask = null; - s.setMask(mask); - } +// try { +// s.setMask(null); +// } +// catch (Throwable e) { +// com.sk89q.worldedit.masks.Mask mask = null; +// s.setMask(mask); +// } } public static void removeMask(Player p) {