Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
dashkt committed Nov 2, 2023
2 parents 934e50f + 927ff7e commit 163253c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.revive.framework.flavor

import net.revive.framework.Framework
import net.revive.framework.flavor.annotation.Inject
import net.revive.framework.flavor.binder.FlavorBinderContainer
import net.revive.framework.flavor.mappings.AnnotationMappings
Expand Down Expand Up @@ -271,6 +272,10 @@ class Flavor(
}
}

Framework.use {
it.log("Flavor Binder", type.simpleName)
}

return bindersOfType.firstOrNull()?.instance
?: type.kotlin.objectInstance ?: type.newInstance() ?: println(
"Did not find any binder for type ${type.simpleName} that satisfies $annotations"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ object FrameworkGRPCClient {
@Inject
lateinit var minecraftPlatform: IMinecraftPlatform

@Configure
fun configure()
{
val client = ManagedChannelBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import net.revive.framework.controller.FrameworkObjectControllerCache
import net.revive.framework.disguise.FrameworkDisguiseHandler
import net.revive.framework.disguise.IDisguiseHandler
import net.revive.framework.flavor.FlavorBinder
import net.revive.framework.grpc.FrameworkGRPCClient
import net.revive.framework.grpc.health.PodHeartbeatThread
import net.revive.framework.item.FrameworkItemStack
import net.revive.framework.item.IItemStackProvider
Expand Down Expand Up @@ -111,6 +112,7 @@ class PaperFrameworkPlugin : ExtendedKotlinPlugin() {
framework.flavor.bind<IVisibilityHandler>() to FrameworkVisiblityHandler()
}

FrameworkGRPCClient.configure()

Tasks.asyncTimer(2L, 2L) {
PaperMinecraftPlatform.getOnlinePlayers().forEach {
Expand Down

0 comments on commit 163253c

Please sign in to comment.