From 9e784c0eaf313a8aa310d3ec26bc68a6f17d4094 Mon Sep 17 00:00:00 2001 From: Steven Scott Date: Sat, 4 Aug 2012 12:19:53 -0700 Subject: [PATCH] [Version 0.7.7.4] - Removed try/catch, it was still segfaulting. - Built against 1.3.1 --- README | 14 ++++++++++++++ src/net/TheDgtl/Stargate/Portal.java | 5 ++++- src/plugin.yml | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/README b/README index 5a846ad..c0437e0 100644 --- a/README +++ b/README @@ -204,12 +204,26 @@ createFull=This network is full createWorldDeny=You do not have access to that world createConflict=Gate conflicts with existing gate +============= + Known Bugs +============= +Client randomly crashes on teleport. + ============= Changes ============= +[Version 0.7.7.4] + - Removed try/catch, it was still segfaulting. + - Built against 1.3.1 +[Version 0.7.7.3] + - Wrap sign changing in try/catch. Stupid Bukkit +[Version 0.7.7.2] + - Load chunk before trying to draw signs + - Implement a workaround for BUKKIT-1033 [Version 0.7.7.1] - Permission checking for 'R'andom gates. - Random now implies AlwaysOn + - Added all languages to JAR [Version 0.7.7.0] - Added 'R'andom option - This still follows the permission rules defined for normal gate usage - Added a bit more debug output diff --git a/src/net/TheDgtl/Stargate/Portal.java b/src/net/TheDgtl/Stargate/Portal.java index 75b22e0..65e5570 100644 --- a/src/net/TheDgtl/Stargate/Portal.java +++ b/src/net/TheDgtl/Stargate/Portal.java @@ -23,6 +23,7 @@ import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.World; import org.bukkit.block.Block; +import org.bukkit.block.BlockState; import org.bukkit.block.Sign; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; @@ -669,7 +670,9 @@ public class Portal { } public final void drawSign() { - if (!(id.getBlock().getState() instanceof Sign)) { + BlockState bs = null; + bs = id.getBlock().getState(); + if (!(bs instanceof Sign)) { Stargate.log.warning("[Stargate] Sign block is not a Sign object"); Stargate.debug("Portal::drawSign", "Block: " + id.getBlock().getType() + " @ " + id.getBlock().getLocation()); return; diff --git a/src/plugin.yml b/src/plugin.yml index 5ecaa0d..9b665ce 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,6 +1,6 @@ name: Stargate main: net.TheDgtl.Stargate.Stargate -version: 0.7.7.1 +version: 0.7.7.4 description: Stargate mod for Bukkit author: Drakia website: http://www.thedgtl.net