mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2025-03-13 22:49:51 -04:00
Merge pull request #78 from Johni0702/block-break
Any value may be used to reset the block break animation (not just 255)
This commit is contained in:
commit
70adafef07
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue