Quick fix for an NPE

This commit is contained in:
Steven Scott 2011-11-30 22:41:49 -08:00
parent a088b2b3d2
commit d73f90c6e8
3 changed files with 4 additions and 2 deletions

2
README
View File

@ -197,6 +197,8 @@ createConflict=Gate conflicts with existing gate
============= =============
Changes Changes
============= =============
[Version 0.7.2.1]
- Quick fix for an NPE
[Version 0.7.2] [Version 0.7.2]
- Make it so you can still destroy gates in Survival mode - Make it so you can still destroy gates in Survival mode
[Version 0.7.1] [Version 0.7.1]

View File

@ -378,7 +378,7 @@ public class Stargate extends JavaPlugin {
// Player gets free use // Player gets free use
if (hasPerm(player, "stargate.free") || Stargate.hasPerm(player, "stargate.free.use")) return true; if (hasPerm(player, "stargate.free") || Stargate.hasPerm(player, "stargate.free.use")) return true;
// Don't charge for free destination gates // 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; return false;
} }

View File

@ -1,6 +1,6 @@
name: Stargate name: Stargate
main: net.TheDgtl.Stargate.Stargate main: net.TheDgtl.Stargate.Stargate
version: 0.7.2 version: 0.7.2.1
description: Stargate mod for Bukkit description: Stargate mod for Bukkit
author: Drakia author: Drakia
website: http://www.thedgtl.net website: http://www.thedgtl.net