@ -78,7 +78,7 @@ public enum ForgeManager implements Runnable {
@@ -78,7 +78,7 @@ public enum ForgeManager implements Runnable {
// Create new set of in-memory only virtual items
forgeWorker OrderBatch ( workOrder ) ;
forgeWorkOrderBatch ( workOrder ) ;
// enQueue this workOrder again; back into the oven
// until all items for this workOrder are completed.
@ -146,7 +146,7 @@ public enum ForgeManager implements Runnable {
@@ -146,7 +146,7 @@ public enum ForgeManager implements Runnable {
// Create in-memory items and add to collections
forgeWorker OrderBatch ( workOrder ) ;
forgeWorkOrderBatch ( workOrder ) ;
Logger . info ( workOrder . toString ( ) ) ;
forge . add ( workOrder ) ;
@ -260,20 +260,6 @@ public enum ForgeManager implements Runnable {
@@ -260,20 +260,6 @@ public enum ForgeManager implements Runnable {
return forgedItem ;
}
public static void applyItemEffects ( Item forgedItem ) {
if ( forgedItem . prefixToken ! = 0 ) {
EffectsBase prefix = PowersManager . getEffectByToken ( forgedItem . prefixToken ) ;
forgedItem . addPermanentEnchantment ( prefix . getIDString ( ) , 0 ) ;
}
if ( forgedItem . suffixToken ! = 0 ) {
EffectsBase suffix = PowersManager . getEffectByToken ( forgedItem . suffixToken ) ;
forgedItem . addPermanentEnchantment ( suffix . getIDString ( ) , 0 ) ;
}
}
public static void completeWorkOrderBatch ( WorkOrder workOrder ) {
ArrayList < Item > toRemove = new ArrayList < > ( ) ;
@ -293,7 +279,7 @@ public enum ForgeManager implements Runnable {
@@ -293,7 +279,7 @@ public enum ForgeManager implements Runnable {
completedItem . prefixToken = workOrderItem . prefixToken ;
completedItem . suffixToken = workOrderItem . suffixToken ;
applyItemEffects ( completedItem ) ;
ItemManager . applyItemEffects ( completedItem ) ;
// add to the vendor inventory
@ -323,7 +309,7 @@ public enum ForgeManager implements Runnable {
@@ -323,7 +309,7 @@ public enum ForgeManager implements Runnable {
}
}
public static void forgeWorker OrderBatch ( WorkOrder workOrder ) {
public static void forgeWorkOrderBatch ( WorkOrder workOrder ) {
// New completion time for this batch