mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-03 12:27:08 -05:00
(cherry picked from commit bf269a2d50
)
This commit is contained in:
parent
caa35c7be4
commit
ee030499b5
1 changed files with 2 additions and 2 deletions
|
@ -521,9 +521,9 @@ public class MinecraftCodecHelper extends BasePacketCodecHelper {
|
||||||
} else if (positionSource instanceof EntityPositionSource) {
|
} else if (positionSource instanceof EntityPositionSource) {
|
||||||
this.writeVarInt(buf, ((EntityPositionSource) positionSource).getEntityId());
|
this.writeVarInt(buf, ((EntityPositionSource) positionSource).getEntityId());
|
||||||
buf.writeFloat(((EntityPositionSource) positionSource).getYOffset());
|
buf.writeFloat(((EntityPositionSource) positionSource).getYOffset());
|
||||||
|
} else {
|
||||||
|
throw new IllegalStateException("Unknown position source type!");
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new IllegalStateException("Unknown position source type!");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public VillagerData readVillagerData(ByteBuf buf) {
|
public VillagerData readVillagerData(ByteBuf buf) {
|
||||||
|
|
Loading…
Reference in a new issue