mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-11 08:27:29 -04:00
fix particle reading (1.8)
This commit is contained in:
parent
b4e556991c
commit
bf4bb5992b
@ -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
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user