Gates can now be any shape

This commit is contained in:
Drakia 2011-02-13 12:06:20 -08:00
parent 916b6df55d
commit b3044c6f03
3 changed files with 5 additions and 2 deletions

2
README
View File

@ -79,6 +79,8 @@ gate-folder - The folder containing your .gate files
============= =============
Changes Changes
============= =============
[Version 0.09]
- Gates can now be any shape
[Version 0.08] [Version 0.08]
- Gates can now consist of any material. - Gates can now consist of any material.
- You can left or right click the button to open a gate - You can left or right click the button to open a gate

View File

@ -311,7 +311,8 @@ public class Portal {
} }
public boolean isVerified() { public boolean isVerified() {
verified = verified || getBlockAt(1, 0).getBlock().getTypeId() == gate.getControlBlock(); for (RelativeBlockVector control : gate.getControls())
verified = verified || getBlockAt(control).getBlock().getTypeId() == gate.getControlBlock();
return verified; return verified;
} }

View File

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