Skip to content

Commit 4fa2f10

Browse files
authored
Use correct entity id data type in 1.8->1.7 entity data sending (#579)
1 parent c2e516d commit 4fa2f10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/com/viaversion/viarewind/protocol/v1_8to1_7_6_10/rewriter/PlayerPacketRewriter1_8.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public void register() {
123123
}
124124
// 1.8 clients do keep entity data after respawn, 1.7 clients don't
125125
final PacketWrapper setEntityData = PacketWrapper.create(ClientboundPackets1_7_2_5.SET_ENTITY_DATA, wrapper.user());
126-
setEntityData.write(Types.VAR_INT, tracker.clientEntityId());
126+
setEntityData.write(Types.INT, tracker.clientEntityId());
127127
setEntityData.write(Types1_7_6_10.ENTITY_DATA_LIST, tracker.getEntityData());
128128
setEntityData.send(Protocol1_8To1_7_6_10.class);
129129
});

0 commit comments

Comments
 (0)