Fix signs also bump version to 0.2

This commit is contained in:
Myles 2016-02-29 19:40:07 +00:00
parent 546fdf95d4
commit 122a7e05f6
4 changed files with 27 additions and 6 deletions

View File

@ -1,17 +1,15 @@
# ViaVersion
# ViaVersion 0.2
**Allows the connection of 1.8 clients to 1.9**
This plugin modifies netty to allow connection of 1.9 clients to 1.8,
**Don't use late bind**
**As of this point it is not finished, I need to fix:**
Entity Movement Sync (Teleporting)
**As of this point it doesn't have everything, I need to fix:**
Attempt to make boats nicer when they don't work
Use reflection more.
Remap spawn eggs
@ -27,6 +25,8 @@ Credits:
**Myself** (harhar)
**Matsv** (Movement Fix)
License:
--------

View File

@ -66,6 +66,16 @@ public class IncomingTransformer {
}
return;
}
if (packet == PacketType.PLAY_UPDATE_SIGN_REQUEST) {
Long location = input.readLong();
output.writeLong(location);
for (int i = 0; i < 4; i++) {
String line = PacketUtil.readString(input);
line = "{\"text\":\"" + line + "\"}";
PacketUtil.writeString(line, output);
}
return;
}
if (packet == PacketType.PLAY_TAB_COMPLETE_REQUEST) {
String text = PacketUtil.readString(input);
PacketUtil.writeString(text, output);

View File

@ -270,6 +270,17 @@ public class OutgoingTransformer {
}
return;
}
if(packet == PacketType.PLAY_UPDATE_SIGN){
Long location = input.readLong();
output.writeLong(location);
for(int i = 0;i<4;i++){
String line = PacketUtil.readString(input);
if(line.startsWith("\"")){
line = "{\"text\":" + line + "}";
}
PacketUtil.writeString(line, output);
}
}
if (packet == PacketType.PLAY_SPAWN_PLAYER) {
int id = PacketUtil.readVarInt(input);
PacketUtil.writeVarInt(id, output);

View File

@ -1,4 +1,4 @@
name: ViaVersion
main: us.myles.ViaVersion.Core
author: _MylesC
version: 0.1
version: 0.2