mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-18 06:24:06 +09:00
asynch update and render (aka frameskip)
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
package net.torvald.terrarum.console
|
||||
|
||||
import net.torvald.terrarum.TerrarumGDX
|
||||
import net.torvald.terrarum.Terrarum
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 16-01-19.
|
||||
*/
|
||||
internal object ToggleNoClip : ConsoleCommand {
|
||||
override fun execute(args: Array<String>) {
|
||||
val status = TerrarumGDX.ingame!!.player!!.isNoClip()
|
||||
val status = Terrarum.ingame!!.player!!.isNoClip()
|
||||
|
||||
TerrarumGDX.ingame!!.player!!.setNoClip(!status)
|
||||
Terrarum.ingame!!.player!!.setNoClip(!status)
|
||||
Echo("Set no-clip status to " + (!status).toString())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user