mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
Add FluidType when getting a melting-IMC. Melting IMCs should be sent before partcasting IMC for it to have the correct
This commit is contained in:
1 parent
696443424c
commit
ff0df97f08
1 file changed
+5
-2
@@ -185,7 +185,7 @@ public final class IMCHandler {
|
||||
newRecipies.add(recipe);
|
||||
}
|
||||
|
||||
FluidType ft = FluidType.getFluidType(liquid.getFluid().getName());
|
||||
FluidType ft = FluidType.getFluidType(liquid.getFluid());
|
||||
if(ft == null) {
|
||||
ft = new FluidType(TinkerSmeltery.glueBlock, 0, 500, liquid.getFluid(), true);
|
||||
FluidType.registerFluidType(liquid.getFluid().getName(), ft);
|
||||
@@ -272,8 +272,11 @@ public final class IMCHandler {
|
||||
ItemStack item = ItemStack.loadItemStackFromNBT(tag.getCompoundTag("Item"));
|
||||
ItemStack block = ItemStack.loadItemStackFromNBT(tag.getCompoundTag("Block"));
|
||||
int temperature = tag.getInteger("Temperature");
|
||||
|
||||
if(FluidType.getFluidType(liquid.getFluid()) == null)
|
||||
FluidType.registerFluidType(liquid.getFluid().getName(), Block.getBlockFromItem(block.getItem()), block.getItemDamage(), temperature, liquid.getFluid(), false);
|
||||
|
||||
Smeltery.addMelting(item, Block.getBlockFromItem(block.getItem()), block.getItemDamage(), temperature, liquid);
|
||||
Smeltery.addMelting(Block.getBlockFromItem(block.getItem()), block.getItemDamage(), temperature, liquid);
|
||||
TConstruct.logger.debug("Smeltery IMC: Added melting: " + item.getDisplayName() + " to " + liquid.amount + "mb " + liquid.getLocalizedName());
|
||||
}
|
||||
else if(type.equals("addSmelteryFuel")) {
|
||||
|
||||
Reference in new issue
Block a user