diff --git a/README b/README index 7c71307..2a0173d 100644 --- a/README +++ b/README @@ -197,6 +197,8 @@ createConflict=Gate conflicts with existing gate ============= Changes ============= +[Version 0.7.2.1] + - Quick fix for an NPE [Version 0.7.2] - Make it so you can still destroy gates in Survival mode [Version 0.7.1] diff --git a/src/net/TheDgtl/Stargate/Stargate.java b/src/net/TheDgtl/Stargate/Stargate.java index d6ff8c3..eacd1fe 100644 --- a/src/net/TheDgtl/Stargate/Stargate.java +++ b/src/net/TheDgtl/Stargate/Stargate.java @@ -378,7 +378,7 @@ public class Stargate extends JavaPlugin { // Player gets free use if (hasPerm(player, "stargate.free") || Stargate.hasPerm(player, "stargate.free.use")) return true; // Don't charge for free destination gates - if (!iConomyHandler.chargeFreeDestination && dest.isFree()) return true; + if (dest != null && !iConomyHandler.chargeFreeDestination && dest.isFree()) return true; return false; } diff --git a/src/plugin.yml b/src/plugin.yml index 3c135a3..11bd4f8 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,6 +1,6 @@ name: Stargate main: net.TheDgtl.Stargate.Stargate -version: 0.7.2 +version: 0.7.2.1 description: Stargate mod for Bukkit author: Drakia website: http://www.thedgtl.net