NOVA-Team / NOVA-Monorepo

The core API of the NOVA voxel game modding system
https://nova-team.github.io
GNU Lesser General Public License v3.0
66 stars 23 forks source link

BWInventory may throw IOOBE for cases where Inventory doesn't. #188

Open SoniEx2 opened 9 years ago

SoniEx2 commented 9 years ago

BWInventory may throw IOOBE for cases where Inventory doesn't.

https://github.com/NOVA-Team/NOVA-Core/blob/master/minecraft/1.7/src/main/java/nova/core/wrapper/mc17/wrapper/inventory/BWInventory.java#L20

Vanilla inventories (e.g. vanilla furnace) are guilty of this: They don't bounds-check.