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,10 +521,10 @@ public class MinecraftCodecHelper extends BasePacketCodecHelper {
|
|||
} else if (positionSource instanceof EntityPositionSource) {
|
||||
this.writeVarInt(buf, ((EntityPositionSource) positionSource).getEntityId());
|
||||
buf.writeFloat(((EntityPositionSource) positionSource).getYOffset());
|
||||
}
|
||||
|
||||
} else {
|
||||
throw new IllegalStateException("Unknown position source type!");
|
||||
}
|
||||
}
|
||||
|
||||
public VillagerData readVillagerData(ByteBuf buf) {
|
||||
return new VillagerData(this.readVarInt(buf), this.readVarInt(buf), this.readVarInt(buf));
|
||||
|
|
Loading…
Reference in a new issue