Made some errors more user-friendly
Properly take into account portal-closed material
This commit is contained in:
parent
a27e1bd017
commit
54af5f449e
3
README
3
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]
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user