fix typo in MicrosoftLoginController

This commit is contained in:
Bixilon 2021-04-21 15:20:02 +02:00
parent 4a4e645cc0
commit 4044f3924f
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
3 changed files with 5 additions and 6 deletions

View File

@ -44,10 +44,10 @@ public class MicrosoftLoginController implements Initializable {
}
}
});
requestOathFlowToken();
requestOauthFlowToken();
}
private void requestOathFlowToken() {
private void requestOauthFlowToken() {
this.webView.getEngine().load(ProtocolDefinition.MICROSOFT_ACCOUNT_OAUTH_FLOW_URL);
}

View File

@ -85,7 +85,7 @@ class HUDWorldDebugNode(hudRenderer: HUDRenderer) : DebugScreenNode(hudRenderer)
}
}"
lightText.sText = "Client light: ${hudRenderer.connection.world.worldLightAccessor.getLightLevel(camera.blockPosition)} (sky=${hudRenderer.connection.world.worldLightAccessor.getSkyLight(camera.blockPosition)}, block=${hudRenderer.connection.world.worldLightAccessor.getBlockLight(camera.blockPosition)})"
lightText.sText = "Client light: sky=${hudRenderer.connection.world.worldLightAccessor.getSkyLight(camera.blockPosition)}, block=${hudRenderer.connection.world.worldLightAccessor.getBlockLight(camera.blockPosition)}"
lastPrepareTime = System.currentTimeMillis()
@ -141,5 +141,4 @@ class HUDWorldDebugNode(hudRenderer: HUDRenderer) : DebugScreenNode(hudRenderer)
return "%.1f".format(rotation)
}
}
}

View File

@ -15,7 +15,7 @@ package de.bixilon.minosoft.modding.event
import de.bixilon.minosoft.modding.event.events.Event
import de.bixilon.minosoft.modding.loading.Priorities
class CallbackEventInvoker<E : Event?> private constructor(
class CallbackEventInvoker<E : Event> private constructor(
ignoreCancelled: Boolean,
private val callback: (E) -> Unit,
override val eventType: Class<out Event>,
@ -32,7 +32,7 @@ class CallbackEventInvoker<E : Event?> private constructor(
return CallbackEventInvoker(
ignoreCancelled = ignoreCancelled,
callback = callback,
eventType = E::class.java
eventType = E::class.java,
)
}
}