mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-02 14:38:50 +00:00
Fix strange out of bounds. Mod compatibility issue?
This commit is contained in:
1 parent
f39d014c99
commit
34a77ffd62
1 file changed
+4
@@ -1009,6 +1009,10 @@ public class ReplayGamePacketHandler implements ClientGamePacketListener {
|
|||||||
|
|
||||||
SynchedEntityData entityData = entity.getEntityData();
|
SynchedEntityData entityData = entity.getEntityData();
|
||||||
for (SynchedEntityData.DataValue<?> dataValue : clientboundSetEntityDataPacket.packedItems()) {
|
for (SynchedEntityData.DataValue<?> dataValue : clientboundSetEntityDataPacket.packedItems()) {
|
||||||
|
if (dataValue.id() >= entityData.itemsById.length) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
SynchedEntityData.DataItem<?> dataItem = entityData.itemsById[dataValue.id()];
|
SynchedEntityData.DataItem<?> dataItem = entityData.itemsById[dataValue.id()];
|
||||||
entityData.set((EntityDataAccessor) dataItem.getAccessor(), dataValue.value(), true);
|
entityData.set((EntityDataAccessor) dataItem.getAccessor(), dataValue.value(), true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user