Removed Display Name Logging.

This commit is contained in:
AlgorithmX2
2014-07-14 09:27:41 -05:00
parent c6e6aca7cb
commit 6d43d21067
2 changed files with 1 additions and 16 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
package appeng.crafting;
import appeng.api.storage.data.IAEItemStack;
import appeng.util.Platform;
public class CraftBranchFailure extends Exception
{
@@ -11,7 +10,7 @@ public class CraftBranchFailure extends Exception
IAEItemStack missing;
public CraftBranchFailure(IAEItemStack what, long howMany) {
super( "Failed: " + Platform.getItemDisplayName( what ) + " x " + howMany );
super( "Failed: " + what.getItem().getUnlocalizedName() + " x " + howMany );
missing = what.copy();
missing.setStackSize( howMany );
}
-14
View File
@@ -19,7 +19,6 @@ import appeng.api.storage.data.IAEItemStack;
import appeng.api.storage.data.IItemList;
import appeng.core.AELog;
import appeng.hooks.TickHandler;
import appeng.util.Platform;
import com.google.common.base.Stopwatch;
@@ -103,7 +102,6 @@ public class CraftingJob implements Runnable, ICraftingJob
{
if ( crafts > 0 )
{
postOp( "new task: " + Platform.getItemDisplayName( what ) + " x " + what.getStackSize(), what.getStackSize(), crafts );
what = what.copy();
what.setStackSize( what.getStackSize() * crafts );
crafting.add( what );
@@ -114,8 +112,6 @@ public class CraftingJob implements Runnable, ICraftingJob
{
what = what.copy();
missing.add( what );
postOp( "required material: " + Platform.getItemDisplayName( what ), 1, what.getStackSize() );
}
class twoIntegers
@@ -127,16 +123,6 @@ public class CraftingJob implements Runnable, ICraftingJob
HashMap<String, twoIntegers> opsAndMultiplier = new HashMap();
private void postOp(String string, long stackSize, long crafts)
{
twoIntegers ti = opsAndMultiplier.get( string );
if ( ti == null )
opsAndMultiplier.put( string, ti = new twoIntegers() );
ti.perOp = stackSize;
ti.times += crafts;
}
@Override
public void run()
{