From c1279abbcb2ef5fece390e335837fa67303e0f0d Mon Sep 17 00:00:00 2001 From: Steven Scott Date: Sun, 10 Mar 2013 13:24:32 -0700 Subject: [PATCH] Update for Bukkit direction update --- README | 2 ++ src/net/TheDgtl/StargateCommand/StargateCommand.java | 12 ++++++------ src/plugin.yml | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README b/README index 81fb45b..e9651c0 100644 --- a/README +++ b/README @@ -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 command - Now requires at least Stargate v0.7.8.0 diff --git a/src/net/TheDgtl/StargateCommand/StargateCommand.java b/src/net/TheDgtl/StargateCommand/StargateCommand.java index 262a188..3b4b403 100644 --- a/src/net/TheDgtl/StargateCommand/StargateCommand.java +++ b/src/net/TheDgtl/StargateCommand/StargateCommand.java @@ -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) { diff --git a/src/plugin.yml b/src/plugin.yml index b707664..2c1c20a 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -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]