mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-16 02:45:13 -04:00
fix EntitySoundS2CP reading
This commit is contained in:
parent
0d68dff097
commit
7ff18cce79
@ -38,8 +38,8 @@ class EntitySoundS2CP(buffer: PlayInByteBuffer) : PlayS2CPacket {
|
||||
return readRegistryItem(connection.registries.soundEvent)
|
||||
}
|
||||
val id = readVarInt()
|
||||
if (id == 0) {
|
||||
return connection.registries.soundEvent[id]
|
||||
if (id != 0) {
|
||||
return connection.registries.soundEvent[id - 1]
|
||||
}
|
||||
val name = readResourceLocation()
|
||||
attenuationDistance = readOptional { readFloat() }
|
||||
|
Loading…
x
Reference in New Issue
Block a user