mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-18 06:24:06 +09:00
generalised things so that they would work outside of ingame.world; title screen wip
This commit is contained in:
@@ -7,9 +7,9 @@ import net.torvald.terrarum.Terrarum
|
||||
*/
|
||||
internal object ToggleNoClip : ConsoleCommand {
|
||||
override fun execute(args: Array<String>) {
|
||||
val status = Terrarum.ingame!!.player!!.isNoClip()
|
||||
val status = Terrarum.ingame!!.player.isNoClip()
|
||||
|
||||
Terrarum.ingame!!.player!!.setNoClip(!status)
|
||||
Terrarum.ingame!!.player.setNoClip(!status)
|
||||
Echo("Set no-clip status to " + (!status).toString())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user