mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-16 01:06:43 +00:00
Update CubotInventory.java
This commit is contained in:
parent
874b7ae802
commit
ef1b9ee9a8
@ -56,8 +56,6 @@ public class CubotInventory extends HardwareModule {
|
|||||||
int x = getCpu().getRegisterSet().getRegister("X").getValue();
|
int x = getCpu().getRegisterSet().getRegister("X").getValue();
|
||||||
Item item = inventory.get(position);
|
Item item = inventory.get(position);
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
item.clear(unit);
|
|
||||||
inventory.remove(position);
|
|
||||||
item.digitize(unit.getCpu().getMemory(), x);
|
item.digitize(unit.getCpu().getMemory(), x);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user