From 73735c5cd5b50a2d7281fe8af881fe71f9d908d6 Mon Sep 17 00:00:00 2001 From: Sebastian Hartte Date: Sat, 15 Aug 2020 17:29:36 +0200 Subject: [PATCH] Remove use of func_244388_a, which is client-only. --- .../appeng/server/subcommands/SpatialStorageCommand.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/appeng/server/subcommands/SpatialStorageCommand.java b/src/main/java/appeng/server/subcommands/SpatialStorageCommand.java index 3394d9122..0721f9c1b 100644 --- a/src/main/java/appeng/server/subcommands/SpatialStorageCommand.java +++ b/src/main/java/appeng/server/subcommands/SpatialStorageCommand.java @@ -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.")); } }