mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-14 09:56:37 -04:00
network: fix sign editor packet reading
This commit is contained in:
parent
689b82ead7
commit
f526d99441
@ -26,7 +26,7 @@ import de.bixilon.minosoft.util.logging.LogMessageType
|
||||
@LoadPacket
|
||||
class SignEditorS2CP(buffer: PlayInByteBuffer) : PlayS2CPacket {
|
||||
val position = if (buffer.versionId < ProtocolVersions.V_14W03B) buffer.readIntBlockPosition() else buffer.readBlockPosition()
|
||||
val side = if (buffer.versionId >= ProtocolVersions.V_22W12A) if (buffer.readBoolean()) SignSides.FRONT else SignSides.BACK else SignSides.FRONT
|
||||
val side = if (buffer.versionId >= ProtocolVersions.V_23W12A) if (buffer.readBoolean()) SignSides.FRONT else SignSides.BACK else SignSides.FRONT
|
||||
|
||||
override fun handle(connection: PlayConnection) {
|
||||
if (connection.events.fire(OpenSignEditorEvent(connection, this))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user