Remove use of func_244388_a, which is client-only.

This commit is contained in:
Sebastian Hartte
2020-08-15 17:29:36 +02:00
parent c1713f1682
commit 73735c5cd5
@@ -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) { private void teleportBack(CommandSource source, SpatialStoragePlot plot) {
TransitionInfo lastTransition = plot.getLastTransition(); TransitionInfo lastTransition = plot.getLastTransition();
if (lastTransition == null) { 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)); 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)) { if (!(cell.getItem() instanceof SpatialStorageCellItem)) {
throw new CommandException( 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(); 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."));
} }
} }