Reviewed and Rewrote Commands #169

Merged
SenseiKiwi merged 17 commits from master into master 2014-07-06 01:59:42 +00:00
Showing only changes of commit 17a770eaf0 - Show all commits

View File

@@ -116,14 +116,14 @@ public class CommandTeleportPlayer extends DDCommandBase
else if (command.length == 4) else if (command.length == 4)
{ {
x = Integer.parseInt(command[1]); x = Integer.parseInt(command[1]);
y = Integer.parseInt(command[2]) + 1; y = Integer.parseInt(command[2]) + 1; // Correct the Y value
z = Integer.parseInt(command[3]); z = Integer.parseInt(command[3]);
destination = new Point4D(x, y, z, dimensionID); destination = new Point4D(x, y, z, dimensionID);
} }
else else
{ {
x = Integer.parseInt(command[2]); x = Integer.parseInt(command[2]);
y = Integer.parseInt(command[3]) + 1; y = Integer.parseInt(command[3]) + 1; // Correct the Y value
z = Integer.parseInt(command[4]); z = Integer.parseInt(command[4]);
destination = new Point4D(x, y, z, dimensionID); destination = new Point4D(x, y, z, dimensionID);
} }