add: extend Loghelper.getStackDescription for IIngredient
This commit is contained in:
parent
b6e08eb8cf
commit
03659e7fd1
1 changed files with 3 additions and 0 deletions
|
@ -8,6 +8,7 @@ import mekanism.api.gas.GasStack;
|
||||||
import minetweaker.MineTweakerAPI;
|
import minetweaker.MineTweakerAPI;
|
||||||
import minetweaker.MineTweakerImplementationAPI;
|
import minetweaker.MineTweakerImplementationAPI;
|
||||||
import minetweaker.api.item.IIngredient;
|
import minetweaker.api.item.IIngredient;
|
||||||
|
import minetweaker.api.oredict.IOreDictEntry;
|
||||||
import minetweaker.api.player.IPlayer;
|
import minetweaker.api.player.IPlayer;
|
||||||
import minetweaker.mc1710.item.MCItemStack;
|
import minetweaker.mc1710.item.MCItemStack;
|
||||||
import modtweaker2.mods.mekanism.gas.MCGasStack;
|
import modtweaker2.mods.mekanism.gas.MCGasStack;
|
||||||
|
@ -109,6 +110,8 @@ public class LogHelper {
|
||||||
return getStackDescription((ItemStack) internalObject);
|
return getStackDescription((ItemStack) internalObject);
|
||||||
} else if (internalObject instanceof FluidStack) {
|
} else if (internalObject instanceof FluidStack) {
|
||||||
return getStackDescription((FluidStack) internalObject);
|
return getStackDescription((FluidStack) internalObject);
|
||||||
|
} else if (internalObject instanceof IOreDictEntry) {
|
||||||
|
return getStackDescription(((IOreDictEntry) internalObject).getName());
|
||||||
} else {
|
} else {
|
||||||
return "null";
|
return "null";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue