diff --git a/README b/README index 4d10509..f1f3110 100644 --- a/README +++ b/README @@ -126,6 +126,9 @@ toowner - Whether the money from gate-use goes to the owner or nobody ============= Changes ============= +[Version 0.4.3] + - Made some errors more user-friendly + - Properly take into account portal-closed material [Version 0.4.2] - Gates can't be created on existing gate blocks [Version 0.4.1] diff --git a/src/net/TheDgtl/Stargate/Gate.java b/src/net/TheDgtl/Stargate/Gate.java index 809e6ba..a3d0b97 100644 --- a/src/net/TheDgtl/Stargate/Gate.java +++ b/src/net/TheDgtl/Stargate/Gate.java @@ -235,7 +235,7 @@ public class Gate { int id = layout[y][x]; if (id == ENTRANCE || id == EXIT) { - if (topleft.modRelative(x, y, 0, modX, 1, modZ).getType() != 0) { + if (topleft.modRelative(x, y, 0, modX, 1, modZ).getType() != portalBlockClosed) { return false; } } else if (id == CONTROL) { diff --git a/src/net/TheDgtl/Stargate/Portal.java b/src/net/TheDgtl/Stargate/Portal.java index 12592bb..b111f1c 100644 --- a/src/net/TheDgtl/Stargate/Portal.java +++ b/src/net/TheDgtl/Stargate/Portal.java @@ -803,7 +803,7 @@ public class Portal { String name = split[0]; Blox s = new Blox(world, split[1]); if (!(s.getBlock().getState() instanceof Sign)) { - Stargate.log.info("[Stargate] Invalid sign on line " + l + " [" + s.getBlock() + "]"); + Stargate.log.info("[Stargate] Sign on line " + l + " doesn't exist. BlockType = " + s.getBlock().getType()); continue; } SignPost sign = new SignPost(s); @@ -814,7 +814,7 @@ public class Portal { Blox topLeft = new Blox(world, split[6]); Gate gate = (split[7].contains(";")) ? Gate.getGateByName("nethergate.gate") : Gate.getGateByName(split[7]); if (gate == null) { - Stargate.log.info("[Stargate] Invalid gate layout on line " + l + " [" + split[7] + "]"); + Stargate.log.info("[Stargate] Gate layout on line " + l + " does not exist [" + split[7] + "]"); continue; } diff --git a/src/plugin.yml b/src/plugin.yml index 08f993c..4df3d89 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,6 +1,6 @@ name: Stargate main: net.TheDgtl.Stargate.Stargate -version: 0.4.2 +version: 0.4.3 description: Stargate mod for Bukkit author: Drakia website: http://www.thedgtl.net