mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 11:54:59 -04:00
remove unknown player properties warning
This commit is contained in:
parent
6f0618b1c6
commit
274173349e
@ -19,9 +19,6 @@ import de.bixilon.kutil.string.StringUtil.formatPlaceholder
|
|||||||
import de.bixilon.kutil.uuid.UUIDUtil.trim
|
import de.bixilon.kutil.uuid.UUIDUtil.trim
|
||||||
import de.bixilon.minosoft.assets.util.InputStreamUtil.readJsonObject
|
import de.bixilon.minosoft.assets.util.InputStreamUtil.readJsonObject
|
||||||
import de.bixilon.minosoft.data.entities.entities.player.properties.textures.PlayerTextures
|
import de.bixilon.minosoft.data.entities.entities.player.properties.textures.PlayerTextures
|
||||||
import de.bixilon.minosoft.util.logging.Log
|
|
||||||
import de.bixilon.minosoft.util.logging.LogLevels
|
|
||||||
import de.bixilon.minosoft.util.logging.LogMessageType
|
|
||||||
import java.net.URL
|
import java.net.URL
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
@ -43,9 +40,8 @@ data class PlayerProperties(
|
|||||||
data["properties"]?.toJsonList()?.let {
|
data["properties"]?.toJsonList()?.let {
|
||||||
for (property in it) {
|
for (property in it) {
|
||||||
check(property is Map<*, *>)
|
check(property is Map<*, *>)
|
||||||
when (val name = property["name"]) {
|
when (property["name"]) {
|
||||||
TEXTURE_PROPERTIES -> textures = PlayerTextures.of(property["value"].toString(), property["signature"]?.toString() ?: throw IllegalArgumentException("Texture data must be signed"))
|
TEXTURE_PROPERTIES -> textures = PlayerTextures.of(property["value"].toString(), property["signature"]?.toString() ?: throw IllegalArgumentException("Texture data must be signed"))
|
||||||
else -> Log.log(LogMessageType.OTHER, LogLevels.WARN) { "Unknown player property $name: ${property["value"].toString()}" }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -224,8 +224,6 @@ class PlayInByteBuffer : InByteBuffer {
|
|||||||
}
|
}
|
||||||
textures = PlayerTextures.of(value, signature)
|
textures = PlayerTextures.of(value, signature)
|
||||||
}
|
}
|
||||||
|
|
||||||
else -> Log.log(LogMessageType.NETWORK_PACKETS_IN, LogLevels.WARN) { "Unknown player property $name: $value" }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return PlayerProperties(
|
return PlayerProperties(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user