Skip to content

Commit

Permalink
fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaargolo committed May 20, 2021
1 parent a9ddd69 commit 7fbfe66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/io/github/lucaargolo/kibe/KibeMod.kt
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ fun initExtras() {
ServerLifecycleEvents.SERVER_STARTED.register { server ->
server.overworld.persistentStateManager.getOrCreate({ ChunkLoaderState(server, "kibe_chunk_loaders") }, "kibe_chunk_loaders")
}
ServerPlayConnectionEvents.DISCONNECT.register { handler, server ->
ServerPlayConnectionEvents.DISCONNECT.register { handler, _ ->
EntangledTankState.ALL_TIME_PLAYER_REQUESTS.remove(handler.player)
EntangledTankState.SERVER_PLAYER_REQUESTS.remove(handler.player)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class ChunkLoader: BlockWithEntity(FabricBlockSettings.of(Material.STONE).requir
if (state[Properties.ENABLED]) {
MinecraftClient.getInstance().openScreen(ChunkLoaderScreen(be))
} else {
player.sendMessage(TranslatableText("chat.kibe.chunk_loader.${be.disabledReason.name.toLowerCase()}"), false)
player.sendMessage(TranslatableText("chat.kibe.chunk_loader.${be.disabledReason.name.lowercase()}"), false)
}
}
}
Expand Down

0 comments on commit 7fbfe66

Please sign in to comment.