[Version 0.7.5.9]

- Quick event fix for latest dev builds
 - Fix for sign ClassCastException
This commit is contained in:
Steven Scott 2012-03-04 11:30:26 -08:00
parent bfcdd212c4
commit 7ba6eeee6b
4 changed files with 11 additions and 3 deletions

3
README
View File

@ -201,6 +201,9 @@ createConflict=Gate conflicts with existing gate
=============
Changes
=============
[Version 0.7.5.9]
- Quick event fix for latest dev builds
- Fix for sign ClassCastException
[Version 0.7.5.8]
- Fixed an exploit with pistons to destroy gates
[Version 0.7.5.7]

View File

@ -590,6 +590,11 @@ public class Portal {
}
public final void drawSign() {
if (!(id.getBlock().getState() 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;
}
Sign sign = (Sign)id.getBlock().getState();
sign.setLine(0, "--" + name + "--");
int max = destinations.size() - 1;
@ -696,7 +701,7 @@ public class Portal {
allPortalsNet.get(getNetwork().toLowerCase()).remove(getName().toLowerCase());
if (id.getBlock().getType() == Material.WALL_SIGN) {
if (id.getBlock().getType() == Material.WALL_SIGN && id.getBlock().getState() instanceof Sign) {
Sign sign = (Sign)id.getBlock().getState();
sign.setLine(0, getName());
sign.setLine(1, "");

View File

@ -5,7 +5,7 @@ import net.TheDgtl.Stargate.Portal;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
public class StargateEvent extends Event implements Cancellable {
public abstract class StargateEvent extends Event implements Cancellable {
protected Portal portal;
protected boolean cancelled;

View File

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