mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 03:54:06 +09:00
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:
@@ -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) {
|
||||
|
||||
@@ -46,7 +46,7 @@ object CommandDict {
|
||||
Pair("langtest", LangTest())
|
||||
)
|
||||
|
||||
fun getCommand(commandName: String): ConsoleCommand {
|
||||
operator fun get(commandName: String): ConsoleCommand {
|
||||
return dict[commandName]!!
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user