Reworked BaseListRemoval

- Fixed various crashes if no recipes are removed and the undo method is
called (e.g. on /mt reload), adding a null object.
- Added option to remove more than 1 recipe with BaseListRemoval
- Cleanup of some classes which are extending BaseListRemoval
This commit is contained in:
Zixxl committed 2015-06-16 12:11:20 +02:00
1 parent 8efaa6c92c
commit de099e4798
40 files changed
+197 -265

No files matched your search

@@ -68,12 +68,11 @@ public class Assembly {
public void apply() {
for (AssemblyRecipe r : (List<AssemblyRecipe>) list) {
if (r.getOutput() != null && areEqual(r.getOutput(), stack)) {
recipe = r;
break;
recipes.add(r);
}
}
list.remove(recipe);
super.apply();
}
@Override