Fix crash when installed on a dedicated server. Closes #4

This commit is contained in:
Marcel Konrad
2019-09-24 15:10:13 +02:00
parent 60ce1e678f
commit 7a2a67cb4b
11 changed files with 128 additions and 113 deletions

View File

@@ -13,7 +13,6 @@ import net.minecraft.util.text.StringTextComponent;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
@OnlyIn(Dist.CLIENT)
public class CommandHelper
{
public static void sendFeedback(CommandSource source, String message)
@@ -32,11 +31,13 @@ public class CommandHelper
CommandWH.register(dispatcher);
}
@OnlyIn(Dist.CLIENT)
public static void sendCommand(ICommandBuilder builder)
{
CommandHelper.sendCommand(builder, false);
}
@OnlyIn(Dist.CLIENT)
public static void sendCommand(ICommandBuilder builder, boolean special)
{
if(builder != null)