Remove use of func_244388_a, which is client-only.
This commit is contained in:
@@ -110,7 +110,7 @@ public class SpatialStorageCommand implements ISubCommand {
|
||||
}
|
||||
}
|
||||
|
||||
throw new CommandException(ITextComponent.func_244388_a("Couldn't find a plot for the current position."));
|
||||
throw new CommandException(new StringTextComponent("Couldn't find a plot for the current position."));
|
||||
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ public class SpatialStorageCommand implements ISubCommand {
|
||||
private void teleportBack(CommandSource source, SpatialStoragePlot plot) {
|
||||
TransitionInfo lastTransition = plot.getLastTransition();
|
||||
if (lastTransition == null) {
|
||||
throw new CommandException(ITextComponent.func_244388_a("This plot doesn't have a last known transition."));
|
||||
throw new CommandException(new StringTextComponent("This plot doesn't have a last known transition."));
|
||||
}
|
||||
|
||||
String command = getTeleportCommand(lastTransition.getWorldId(), lastTransition.getMin().add(0, 1, 0));
|
||||
@@ -211,7 +211,7 @@ public class SpatialStorageCommand implements ISubCommand {
|
||||
|
||||
if (!(cell.getItem() instanceof SpatialStorageCellItem)) {
|
||||
throw new CommandException(
|
||||
ITextComponent.func_244388_a("Storage cell items don't implement the storage cell interface!"));
|
||||
new StringTextComponent("Storage cell items don't implement the storage cell interface!"));
|
||||
}
|
||||
|
||||
SpatialStorageCellItem spatialCellItem = (SpatialStorageCellItem) cell.getItem();
|
||||
@@ -320,7 +320,7 @@ public class SpatialStorageCommand implements ISubCommand {
|
||||
}
|
||||
}
|
||||
|
||||
throw new CommandException(ITextComponent.func_244388_a("Couldn't find a plot for the current position."));
|
||||
throw new CommandException(new StringTextComponent("Couldn't find a plot for the current position."));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user