PlayerTexture: remove unused method

This commit is contained in:
Bixilon 2023-01-18 10:41:00 +01:00
parent 667a911239
commit c222d48f8e
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
2 changed files with 1 additions and 10 deletions

View File

@ -71,14 +71,5 @@ open class PlayerTexture(
companion object { companion object {
private const val MAX_TEXTURE_SIZE = 64 * 64 * 3 + 100 // width * height * rgb + some padding private const val MAX_TEXTURE_SIZE = 64 * 64 * 3 + 100 // width * height * rgb + some padding
private fun urlMatches(url: URL, domains: Array<String>): Boolean {
for (checkURL in domains) {
if (url.host.endsWith(checkURL)) {
return true
}
}
return false
}
} }
} }

View File

@ -48,7 +48,7 @@ class PlayerAbilitiesS2CP(buffer: PlayInByteBuffer) : PlayS2CPacket {
} }
override fun log(reducedLog: Boolean) { override fun log(reducedLog: Boolean) {
Log.log(LogMessageType.NETWORK_PACKETS_IN, level = LogLevels.VERBOSE) { "Player abilities (isInvulnerable=$isInvulnerable, isFlying=$isFlying, canFly=$canFly, canInstantBuild=$creative, flyingSpeed=$flyingSpeed, walkingSpeed=$walkingSpeed)" } Log.log(LogMessageType.NETWORK_PACKETS_IN, level = LogLevels.VERBOSE) { "Player abilities (isInvulnerable=$isInvulnerable, isFlying=$isFlying, canFly=$canFly, creative=$creative, flyingSpeed=$flyingSpeed, walkingSpeed=$walkingSpeed)" }
} }
override fun handle(connection: PlayConnection) { override fun handle(connection: PlayConnection) {