Skip to content

Commit

Permalink
Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComput…
Browse files Browse the repository at this point in the history
…ers into OC1.5-MC1.7.10
fnuecke committed Sep 21, 2015
2 parents 003b69f + 29793e7 commit 51563ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/li/cil/oc/common/command/SimpleCommand.scala
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ package li.cil.oc.common.command

import net.minecraft.command.CommandBase
import net.minecraft.command.ICommandSender
import net.minecraft.server.MinecraftServer

import scala.collection.convert.WrapAsJava._
import scala.collection.mutable
@@ -13,7 +14,7 @@ abstract class SimpleCommand(val name: String) extends CommandBase {

override def getCommandAliases = aliases

override def canCommandSenderUseCommand(source: ICommandSender) = true
override def canCommandSenderUseCommand(source: ICommandSender) = MinecraftServer.getServer.isSinglePlayer || super.canCommandSenderUseCommand(source)

override def isUsernameIndex(command: Array[String], i: Int) = false

0 comments on commit 51563ef

Please sign in to comment.