Update for Bukkit direction update

This commit is contained in:
Steven Scott
2013-03-10 13:24:32 -07:00
parent 7c44e0c9b7
commit c1279abbcb
3 changed files with 9 additions and 7 deletions

2
README
View File

@@ -74,6 +74,8 @@ If the network is not supplied, the default Stargate network will be used. If th
=============
Changes
=============
[Version 0.0.4]
- Fix for Bukkit's direction fix
[Version 0.0.3]
- Added /sgc owner <player> command
- Now requires at least Stargate v0.7.8.0

View File

@@ -125,19 +125,19 @@ public class StargateCommand extends JavaPlugin {
int modX = 0;
int modZ = 0;
if (topleft.getRelative(BlockFace.EAST).getType() == Material.BEDROCK) {
modZ = -1;
modX = 1;
tmp++;
}
if (topleft.getRelative(BlockFace.WEST).getType() == Material.BEDROCK) {
modZ = 1;
tmp++;
}
if (topleft.getRelative(BlockFace.NORTH).getType() == Material.BEDROCK) {
modX = -1;
tmp++;
}
if (topleft.getRelative(BlockFace.NORTH).getType() == Material.BEDROCK) {
modZ = -1;
tmp++;
}
if (topleft.getRelative(BlockFace.SOUTH).getType() == Material.BEDROCK) {
modX = 1;
modZ = 1;
tmp++;
}
if (tmp != 1 || topleft.getRelative(BlockFace.DOWN).getType() != Material.BEDROCK) {

View File

@@ -1,6 +1,6 @@
name: StargateCommand
main: net.TheDgtl.StargateCommand.StargateCommand
version: 0.0.3
version: 0.0.4
description: Command addon for the Stargate plugin for Bukkit
author: Drakia
depend: [Stargate]