Stop open gates from being destroyed on startup

This commit is contained in:
Steven Scott 2011-08-18 23:41:50 -07:00
parent b747c9f0c0
commit c8764c6091
3 changed files with 5 additions and 2 deletions

2
README
View File

@ -146,6 +146,8 @@ maxgates - If non-zero, will define the maximum amount of gates allowed on any n
============= =============
Changes Changes
============= =============
[Version 0.6.1]
- Stop destruction of open gates on startup
[Version 0.6.0] [Version 0.6.0]
- Completely re-wrote Permission handling (REREAD/REDO YOUR PERMISSIONS!!!!!!!!) - Completely re-wrote Permission handling (REREAD/REDO YOUR PERMISSIONS!!!!!!!!)
- Added custom Stargate events (See Stargate-DHD code for use) - Added custom Stargate events (See Stargate-DHD code for use)

View File

@ -227,7 +227,8 @@ public class Gate {
int id = types.get(layout[y][x]); int id = types.get(layout[y][x]);
if (id == ENTRANCE || id == EXIT) { if (id == ENTRANCE || id == EXIT) {
if (topleft.modRelative(x, y, 0, modX, 1, modZ).getType() != portalBlockClosed) { int type = topleft.modRelative(x, y, 0, modX, 1, modZ).getType();
if (type != portalBlockClosed && type != portalBlockOpen) {
return false; return false;
} }
} else if (id != ANYTHING) { } else if (id != ANYTHING) {

View File

@ -1,6 +1,6 @@
name: Stargate name: Stargate
main: net.TheDgtl.Stargate.Stargate main: net.TheDgtl.Stargate.Stargate
version: 0.6.0 version: 0.6.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