Merge pull request from Johni0702/block-break

Any value may be used to reset the block break animation (not just 255)
This commit is contained in:
Steven Smith 2015-04-01 15:25:55 -07:00
commit 70adafef07

View file

@ -43,6 +43,9 @@ public class ServerBlockBreakAnimPacket implements Packet {
this.breakerEntityId = in.readVarInt();
this.position = NetUtil.readPosition(in);
this.stage = MagicValues.key(BlockBreakStage.class, in.readUnsignedByte());
if (this.stage == null) {
this.stage = BlockBreakStage.RESET;
}
}
@Override