Update CubotInventory.java

This commit is contained in:
chromapid 2021-12-21 10:47:13 -07:00 committed by GitHub
parent 874b7ae802
commit ef1b9ee9a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,8 +56,6 @@ public class CubotInventory extends HardwareModule {
int x = getCpu().getRegisterSet().getRegister("X").getValue();
Item item = inventory.get(position);
if (item != null) {
item.clear(unit);
inventory.remove(position);
item.digitize(unit.getCpu().getMemory(), x);
}
}