File tree 3 files changed +11
-22
lines changed
src/main/java/net/pedroksl/advanced_ae
3 files changed +11
-22
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ loader_version_range=[4,)
14
14
mod_id =advanced_ae
15
15
mod_name =Advanced AE
16
16
mod_license =LGPL-3.0
17
- mod_version =0.3.2 -1.21.1
17
+ mod_version =0.3.3 -1.21.1
18
18
mod_group_id =net.pedroksl.advanced_ae
19
19
mod_authors =Pedroksl
20
20
mod_description =This mod aims to expand on the added capabilities of Extended AE.
Original file line number Diff line number Diff line change 1
1
package net .pedroksl .advanced_ae .client ;
2
2
3
- import appeng .menu .SlotSemantic ;
4
- import appeng .menu .SlotSemantics ;
5
-
6
- public class AAESemantics {
7
-
8
- public static final SlotSemantic OUTPUT_SLOT = SlotSemantics .register ("OutputSlot" , false );
9
- public static final SlotSemantic EX_2 = SlotSemantics .register ("EX_2" , false );
10
- public static final SlotSemantic EX_3 = SlotSemantics .register ("EX_3" , false );
11
- public static final SlotSemantic EX_4 = SlotSemantics .register ("EX_4" , false );
12
- public static final SlotSemantic EX_5 = SlotSemantics .register ("EX_5" , false );
13
- public static final SlotSemantic EX_6 = SlotSemantics .register ("EX_6" , false );
14
- public static final SlotSemantic EX_7 = SlotSemantics .register ("EX_7" , false );
15
- public static final SlotSemantic EX_8 = SlotSemantics .register ("EX_8" , false );
16
- public static final SlotSemantic EX_9 = SlotSemantics .register ("EX_9" , false );
17
- public static final SlotSemantic EX_10 = SlotSemantics .register ("EX_10" , false );
18
- public static final SlotSemantic EX_11 = SlotSemantics .register ("EX_11" , false );
19
- public static final SlotSemantic EX_12 = SlotSemantics .register ("EX_12" , false );
20
- }
3
+ public class AAESemantics {}
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ public IGrid getGrid() {
204
204
205
205
public void cancelJobs () {
206
206
for (var plan : activeCpus .keySet ()) {
207
- killCpu (plan );
207
+ killCpu (plan , false );
208
208
}
209
209
}
210
210
@@ -233,11 +233,17 @@ public ICraftingSubmitResult submitJob(
233
233
return submitResult ;
234
234
}
235
235
236
- private void killCpu (ICraftingPlan plan ) {
236
+ private void killCpu (ICraftingPlan plan , boolean updateGrid ) {
237
237
var cpu = this .activeCpus .remove (plan );
238
238
cpu .craftingLogic .cancel ();
239
239
recalculateRemainingStorage ();
240
- updateGridForChangedCpu (this );
240
+ if (updateGrid ) {
241
+ updateGridForChangedCpu (this );
242
+ }
243
+ }
244
+
245
+ private void killCpu (ICraftingPlan plan ) {
246
+ killCpu (plan , true );
241
247
}
242
248
243
249
public List <AdvCraftingCPU > getActiveCPUs () {
You can’t perform that action at this time.
0 commit comments