File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/main/kotlin/me/apyr/chatemotes/emote/local Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,14 @@ class LocalEmoteProvider : EmoteProvider {
8484 override fun getResourcePackInfo (): ResourcePackInfo ? {
8585 val emotes = getEmotes()
8686 if (emotes.isEmpty()) {
87+ ChatEmotes .getLogger().info(" Failed to generate resource pack: no emotes are present" )
8788 return null
8889 }
8990
90- val hostname: String = publicServerHostname ? : return null
91+ val hostname: String = publicServerHostname ? : return let {
92+ ChatEmotes .getLogger().info(" Failed to generate resource pack: unknown public server hostname" )
93+ null
94+ }
9195 val port: Int = ChatEmotes .getInstance().settings.httpPort()
9296
9397 val pack: ByteArray = ResourcePackGenerator .generate(emotes.values.toList())
You can’t perform that action at this time.
0 commit comments