This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent abda4a244b
commit 983ca22d97
65 files changed
+188 -305

No files matched your search

+11 -9
View File
@@ -66,7 +66,8 @@ public final class IMCHandler {
TConstruct.logger.debug("IMC: Added Projectile stats for material " + mat.materialName);
}
// add additional render mapping so resource packs or the mods themselves can have custom textures
// add additional render mapping so resource packs or the mods themselves can have custom
// textures
// for the tools
if (FMLCommonHandler.instance().getSide().isClient())
TConstructClientRegistry.addMaterialRenderMapping(
@@ -168,12 +169,13 @@ public final class IMCHandler {
// we add the toolpart to all smeltery recipies that use iron and create a toolpart
List<CastingRecipe> newRecipies = new LinkedList<>();
for (CastingRecipe recipe : TConstructRegistry.getTableCasting().getCastingRecipes()) {
for (CastingRecipe recipe :
TConstructRegistry.getTableCasting().getCastingRecipes()) {
if (recipe.castingMetal.getFluid() != TinkerSmeltery.moltenIronFluid) continue;
if (recipe.cast == null || !(recipe.cast.getItem() instanceof IPattern)) continue;
if (!(recipe.getResult().getItem()
instanceof DynamicToolPart)) // has to be dynamic toolpart to support automatic addition
continue;
continue;
newRecipies.add(recipe);
}
@@ -198,7 +200,8 @@ public final class IMCHandler {
Smeltery.addMelting(ft, output, 0, liquid2.amount);
}
TConstruct.logger.debug("Casting IMC: Added fluid " + tag.getString("FluidName") + " to part casting");
TConstruct.logger.debug(
"Casting IMC: Added fluid " + tag.getString("FluidName") + " to part casting");
break;
}
case "addMaterialItem": {
@@ -275,8 +278,8 @@ public final class IMCHandler {
Smeltery.addMelting(
item, Block.getBlockFromItem(block.getItem()), block.getItemDamage(), temperature, liquid);
TConstruct.logger.debug("Smeltery IMC: Added melting: " + item.getDisplayName() + " to " + liquid.amount
+ "mb " + liquid.getLocalizedName());
TConstruct.logger.debug("Smeltery IMC: Added melting: " + item.getDisplayName() + " to "
+ liquid.amount + "mb " + liquid.getLocalizedName());
break;
}
case "addSmelteryFuel": {
@@ -299,8 +302,8 @@ public final class IMCHandler {
Smeltery.addSmelteryFuel(liquid.getFluid(), temperature, duration);
TConstruct.logger.debug("Smeltery IMC: Added fuel: " + liquid.getLocalizedName() + " (" + temperature
+ ", " + duration + ")");
TConstruct.logger.debug("Smeltery IMC: Added fuel: " + liquid.getLocalizedName() + " ("
+ temperature + ", " + duration + ")");
break;
}
case "addFluxBattery":
@@ -311,7 +314,6 @@ public final class IMCHandler {
ItemStack battery = message.getItemStackValue();
battery.stackSize = 1; // avoid getting a stack size of 0 or larger than 1
if (!(battery.getItem() instanceof IEnergyContainerItem)) {
FMLLog.bigWarning("Flux Battery IMC: ItemStack is no instance of IEnergyContainerItem");
}