From b01cf3b8f76a0ce3d387071c8648cccf665cd7a1 Mon Sep 17 00:00:00 2001 From: Ben Spiers Date: Mon, 29 Jul 2013 21:38:10 +0100 Subject: [PATCH] Make it so that /mk is always available in SSP --- common/mekanism/common/CommandMekanism.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/mekanism/common/CommandMekanism.java b/common/mekanism/common/CommandMekanism.java index 785461876..7f78cdff2 100644 --- a/common/mekanism/common/CommandMekanism.java +++ b/common/mekanism/common/CommandMekanism.java @@ -8,10 +8,17 @@ import net.minecraft.command.CommandBase; import net.minecraft.command.ICommandSender; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.ChatMessageComponent; +import net.minecraft.server.MinecraftServer; public class CommandMekanism extends CommandBase { @Override + public boolean canCommandSenderUseCommand(ICommandSender sender) + { + return MinecraftServer.getServer().isSinglePlayer() || super.canCommandSenderUseCommand(sender); + } + + @Override public String getCommandName() { return "mk";