mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
Fixed debug.runCommand in pure single player mode, fixes #754.
This commit is contained in:
parent
f499f939a8
commit
766eb0ac6d
@ -359,10 +359,10 @@ object DebugCard {
|
|||||||
val profile = fakePlayer.getGameProfile
|
val profile = fakePlayer.getGameProfile
|
||||||
val server = fakePlayer.mcServer
|
val server = fakePlayer.mcServer
|
||||||
val config = server.getConfigurationManager
|
val config = server.getConfigurationManager
|
||||||
config.func_152596_g(profile) && (config.func_152603_m.func_152683_b(profile) match {
|
server.isSinglePlayer || (config.func_152596_g(profile) && (config.func_152603_m.func_152683_b(profile) match {
|
||||||
case entry: UserListOpsEntry => entry.func_152644_a >= level
|
case entry: UserListOpsEntry => entry.func_152644_a >= level
|
||||||
case _ => server.getOpPermissionLevel >= level
|
case _ => server.getOpPermissionLevel >= level
|
||||||
})
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
override def getPlayerCoordinates = BlockPosition(host).toChunkCoordinates
|
override def getPlayerCoordinates = BlockPosition(host).toChunkCoordinates
|
||||||
|
Loading…
x
Reference in New Issue
Block a user