fix particle reading (1.8)

This commit is contained in:
Bixilon 2020-06-27 23:51:12 +02:00
parent b4e556991c
commit bf4bb5992b
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
2 changed files with 1 additions and 18 deletions

View File

@ -77,9 +77,7 @@ public enum Particles {
DRIPPING_HONEY(new Identifier(null, "dripping_honey"), 58),
FALLING_HONEY(new Identifier(null, "falling_honey"), 59),
LANDING_HONEY(new Identifier(null, "landing_honey"), 60),
FALLING_NECTAR(new Identifier(null, "falling_nectar"), 61),
IRON_CRACK(new Identifier("ironcrack"), 36);
FALLING_NECTAR(new Identifier(null, "falling_nectar"), 61);
//ToDo: 1.8 names, etc

View File

@ -65,21 +65,6 @@ public class PacketParticle implements ClientboundPacket {
particleData = buffer.readFloat();
count = buffer.readInteger();
switch (particle) {
case IRON_CRACK:
data = new int[2];
data[0] = buffer.readVarInt();
data[1] = buffer.readVarInt();
break;
case BLOCK:
case DUST:
data = new int[1];
data[0] = buffer.readVarInt();
break;
default:
data = new int[0];
break;
}
break;
}
}