Merge pull request #1230 from creeper123123321/dev2

read nbt in 1.14 chunk, pose metatype, don't change ping protocol if …
This commit is contained in:
Myles 2019-03-30 14:07:22 +00:00 committed by GitHub
commit c8d1304e7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,7 @@ public enum MetaType1_14 implements MetaType {
PARTICLE(15, Protocol1_13_2To1_13_1.PARTICLE_TYPE),
VillagerData(16, Type.VILLAGER_DATA),
OptVarInt(17, Type.OPTIONAL_VAR_INT),
Pose(18, Type.VAR_INT),
Discontinued(99, null);
private final int typeID;

View File

@ -81,7 +81,7 @@ public class BaseProtocol1_7 extends Protocol {
}
if (protocols != null) {
if (protocolVersion != 9999) {
if (protocolVersion == protocol || protocolVersion == 0) {
//Fix ServerListPlus
version.addProperty("protocol", info.getProtocolVersion());
}

View File

@ -30,6 +30,7 @@ public class Chunk1_14Type extends PartialType<Chunk, ClientWorld> {
boolean groundUp = input.readBoolean();
int primaryBitmask = Type.VAR_INT.read(input);
Type.NBT.read(input); // todo save this
Type.VAR_INT.read(input);
BitSet usedSections = new BitSet(16);