mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-20 04:19:44 +00:00
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:
1 parent
8efaa6c92c
commit
de099e4798
40 files changed
+197
-265
No files matched your search
@@ -58,13 +58,11 @@ public class Crystallizer {
|
||||
if (r != null) {
|
||||
ItemStack output = getOutput(r);
|
||||
if (output != null && areEqual(output, stack)) {
|
||||
recipe = r;
|
||||
break;
|
||||
recipes.add(r);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
list.remove(recipe);
|
||||
super.apply();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -56,12 +56,10 @@ public class Lacerator {
|
||||
for (Object r : list) {
|
||||
ItemStack output = getOutput(r);
|
||||
if (output != null && areEqual(output, stack)) {
|
||||
recipe = r;
|
||||
break;
|
||||
recipes.add(r);
|
||||
}
|
||||
}
|
||||
|
||||
list.remove(recipe);
|
||||
super.apply();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user