walking is now normal, no more sticking to the walls (the Q&D soluction was used), noclip movement is also normal now

Former-commit-id: 5a8de3e31e1f39e1591a5a60abc9d0dd37c3f87e
Former-commit-id: 9c685d31d6f8c75b512f41e467fac8586a22bc59
This commit is contained in:
Song Minjae
2016-07-31 17:51:06 +09:00
parent 30a0464820
commit 5e7a95a3b9
9 changed files with 158 additions and 123 deletions

View File

@@ -18,7 +18,7 @@ class CodexEdictis : ConsoleCommand {
}
else {
try {
val commandObj = CommandDict.getCommand(args[1].toLowerCase())
val commandObj = CommandDict.get(args[1].toLowerCase())
commandObj.printUsage()
}
catch (e: NullPointerException) {

View File

@@ -46,7 +46,7 @@ object CommandDict {
Pair("langtest", LangTest())
)
fun getCommand(commandName: String): ConsoleCommand {
operator fun get(commandName: String): ConsoleCommand {
return dict[commandName]!!
}
}

View File

@@ -39,13 +39,15 @@ object CommandInterpreter {
for (single_command in cmd) {
var commandObj: ConsoleCommand? = null
try {
if (commandsNoAuth.contains(single_command!!.name.toLowerCase())) {
commandObj = CommandDict.getCommand(single_command.name.toLowerCase())
if (single_command!!.name.toLowerCase().startsWith("qqq")) {
commandObj = CommandDict["qqq"]
}
else if (commandsNoAuth.contains(single_command.name.toLowerCase())) {
commandObj = CommandDict[single_command.name.toLowerCase()]
}
else {
if (Terrarum.ingame.auth.b()) {
commandObj = CommandDict.getCommand(
single_command.name.toLowerCase())
commandObj = CommandDict[single_command.name.toLowerCase()]
}
else {
// System.out.println("ee1");