Minor Change
Added two comments to CommandTeleportPlayer
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user