Industrial Foregoing

Industrial Foregoing

95M Downloads

[1.16] Processing addon NullPointerException(and some more)

s1Fon opened this issue ยท 0 comments

commented

**Industrial Foregoing Version: 3.2.14.3-9

**Titanium Version: 3.2.8.4-10

Problem

Processing addon is half-broken. It can throw NullPointerException or some machine output wiil be not right. For example Sewage composter with Processing addon instaled will produce 3 Fertilizer from 1 bucket of Sewage

### Solution

You should somehow change this part of code because it always sets operations count to 1 + tier of addon.

int operations = (int) (this.hasAugmentInstalled(ProcessingAddonItem.PROCESSING) ? AugmentWrapper.getType(this.getInstalledAugments(ProcessingAddonItem.PROCESSING).get(0), ProcessingAddonItem.PROCESSING) : 1);
for (int i = 0; i < operations; i++) {
onFinish().run();