mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 12:19:48 +00:00
Fix obsidian dust exploit with other mods
This commit is contained in:
1 parent
8e6462f276
commit
5e68aec1fd
1 file changed
+30
-1
@@ -2467,7 +2467,7 @@ public class TContent implements IFuelHandler
|
||||
|
||||
public void addOreDictionarySmelteryRecipes ()
|
||||
{
|
||||
List<FluidType> exceptions = Arrays.asList(new FluidType[] { FluidType.Water, FluidType.Stone, FluidType.Ender, FluidType.Glass, FluidType.Slime });
|
||||
List<FluidType> exceptions = Arrays.asList(new FluidType[] { FluidType.Water, FluidType.Stone, FluidType.Ender, FluidType.Glass, FluidType.Slime, FluidType.Obsidian });
|
||||
for (FluidType ft : FluidType.values())
|
||||
{
|
||||
if (exceptions.contains(ft))
|
||||
@@ -2500,6 +2500,35 @@ public class TContent implements IFuelHandler
|
||||
}
|
||||
}
|
||||
|
||||
//Obsidian, different dust amount
|
||||
{
|
||||
FluidType ft = FluidType.Obsidian;
|
||||
Smeltery.addDictionaryMelting("nugget" + ft.toString(), ft, -100, TConstruct.nuggetLiquidValue);
|
||||
|
||||
// Ingots, Dust
|
||||
registerIngotCasting(ft);
|
||||
Smeltery.addDictionaryMelting("ingot" + ft.toString(), ft, -50, TConstruct.ingotLiquidValue);
|
||||
Smeltery.addDictionaryMelting("dust" + ft.toString(), ft, -75, TConstruct.ingotLiquidValue/4);
|
||||
|
||||
// Factorization support
|
||||
Smeltery.addDictionaryMelting("crystalline" + ft.toString(), ft, -50, TConstruct.ingotLiquidValue);
|
||||
|
||||
// Ores
|
||||
Smeltery.addDictionaryMelting("ore" + ft.toString(), ft, 0, TConstruct.ingotLiquidValue * PHConstruct.ingotsPerOre);
|
||||
|
||||
// NetherOres support
|
||||
Smeltery.addDictionaryMelting("oreNether" + ft.toString(), ft, 75, TConstruct.ingotLiquidValue * PHConstruct.ingotsPerOre * 2);
|
||||
|
||||
// Blocks
|
||||
Smeltery.addDictionaryMelting("block" + ft.toString(), ft, 100, TConstruct.blockLiquidValue);
|
||||
|
||||
if (ft.isToolpart)
|
||||
{
|
||||
registerPatternMaterial("ingot" + ft.toString(), 2, ft.toString());
|
||||
registerPatternMaterial("block" + ft.toString(), 18, ft.toString());
|
||||
}
|
||||
}
|
||||
|
||||
//Compressed materials
|
||||
for (int i = 1; i <= 8; i++)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user