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