Update for Bukkit direction update
This commit is contained in:
2
README
2
README
@@ -74,6 +74,8 @@ If the network is not supplied, the default Stargate network will be used. If th
|
|||||||
=============
|
=============
|
||||||
Changes
|
Changes
|
||||||
=============
|
=============
|
||||||
|
[Version 0.0.4]
|
||||||
|
- Fix for Bukkit's direction fix
|
||||||
[Version 0.0.3]
|
[Version 0.0.3]
|
||||||
- Added /sgc owner <player> command
|
- Added /sgc owner <player> command
|
||||||
- Now requires at least Stargate v0.7.8.0
|
- Now requires at least Stargate v0.7.8.0
|
||||||
|
|||||||
@@ -125,19 +125,19 @@ public class StargateCommand extends JavaPlugin {
|
|||||||
int modX = 0;
|
int modX = 0;
|
||||||
int modZ = 0;
|
int modZ = 0;
|
||||||
if (topleft.getRelative(BlockFace.EAST).getType() == Material.BEDROCK) {
|
if (topleft.getRelative(BlockFace.EAST).getType() == Material.BEDROCK) {
|
||||||
modZ = -1;
|
modX = 1;
|
||||||
tmp++;
|
tmp++;
|
||||||
}
|
}
|
||||||
if (topleft.getRelative(BlockFace.WEST).getType() == Material.BEDROCK) {
|
if (topleft.getRelative(BlockFace.WEST).getType() == Material.BEDROCK) {
|
||||||
modZ = 1;
|
|
||||||
tmp++;
|
|
||||||
}
|
|
||||||
if (topleft.getRelative(BlockFace.NORTH).getType() == Material.BEDROCK) {
|
|
||||||
modX = -1;
|
modX = -1;
|
||||||
tmp++;
|
tmp++;
|
||||||
}
|
}
|
||||||
|
if (topleft.getRelative(BlockFace.NORTH).getType() == Material.BEDROCK) {
|
||||||
|
modZ = -1;
|
||||||
|
tmp++;
|
||||||
|
}
|
||||||
if (topleft.getRelative(BlockFace.SOUTH).getType() == Material.BEDROCK) {
|
if (topleft.getRelative(BlockFace.SOUTH).getType() == Material.BEDROCK) {
|
||||||
modX = 1;
|
modZ = 1;
|
||||||
tmp++;
|
tmp++;
|
||||||
}
|
}
|
||||||
if (tmp != 1 || topleft.getRelative(BlockFace.DOWN).getType() != Material.BEDROCK) {
|
if (tmp != 1 || topleft.getRelative(BlockFace.DOWN).getType() != Material.BEDROCK) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: StargateCommand
|
name: StargateCommand
|
||||||
main: net.TheDgtl.StargateCommand.StargateCommand
|
main: net.TheDgtl.StargateCommand.StargateCommand
|
||||||
version: 0.0.3
|
version: 0.0.4
|
||||||
description: Command addon for the Stargate plugin for Bukkit
|
description: Command addon for the Stargate plugin for Bukkit
|
||||||
author: Drakia
|
author: Drakia
|
||||||
depend: [Stargate]
|
depend: [Stargate]
|
||||||
|
|||||||
Reference in New Issue
Block a user