Stop open gates from being destroyed on startup
This commit is contained in:
parent
b747c9f0c0
commit
c8764c6091
2
README
2
README
@ -146,6 +146,8 @@ maxgates - If non-zero, will define the maximum amount of gates allowed on any n
|
||||
=============
|
||||
Changes
|
||||
=============
|
||||
[Version 0.6.1]
|
||||
- Stop destruction of open gates on startup
|
||||
[Version 0.6.0]
|
||||
- Completely re-wrote Permission handling (REREAD/REDO YOUR PERMISSIONS!!!!!!!!)
|
||||
- Added custom Stargate events (See Stargate-DHD code for use)
|
||||
|
@ -227,7 +227,8 @@ public class Gate {
|
||||
int id = types.get(layout[y][x]);
|
||||
|
||||
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;
|
||||
}
|
||||
} else if (id != ANYTHING) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: Stargate
|
||||
main: net.TheDgtl.Stargate.Stargate
|
||||
version: 0.6.0
|
||||
version: 0.6.1
|
||||
description: Stargate mod for Bukkit
|
||||
author: Drakia
|
||||
website: http://www.thedgtl.net
|
||||
|
Loading…
Reference in New Issue
Block a user