mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-22 21:09:51 +00:00
Fix item and block localization. This is a world breaking change!
This commit is contained in:
1 parent
5fcc76a2fa
commit
83789ae8f7
78 files changed
+1119
-1120
No files matched your search
@@ -41,7 +41,7 @@ public class CraftGuideBottler implements RecipeProvider {
|
||||
if (ForestryBlock.factoryTESR == null)
|
||||
return;
|
||||
|
||||
ItemStack machine = new ItemStack(ForestryBlock.factoryTESR, 1, Defaults.DEFINITION_BOTTLER_META);
|
||||
ItemStack machine = ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_BOTTLER_META);
|
||||
RecipeTemplate template = generator.createRecipeTemplate(slots, machine);
|
||||
|
||||
for (MachineBottler.Recipe recipe : MachineBottler.RecipeManager.recipes) {
|
||||
|
||||
@@ -44,7 +44,7 @@ public class CraftGuideCarpenter implements RecipeProvider {
|
||||
if (ForestryBlock.factoryTESR == null)
|
||||
return;
|
||||
|
||||
ItemStack machine = new ItemStack(ForestryBlock.factoryTESR, 1, Defaults.DEFINITION_CARPENTER_META);
|
||||
ItemStack machine = ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_CARPENTER_META);
|
||||
RecipeTemplate template = generator.createRecipeTemplate(slots, machine);
|
||||
|
||||
for (MachineCarpenter.Recipe recipe : MachineCarpenter.RecipeManager.recipes) {
|
||||
|
||||
@@ -44,7 +44,7 @@ public class CraftGuideCentrifuge implements RecipeProvider {
|
||||
if (ForestryBlock.factoryTESR == null)
|
||||
return;
|
||||
|
||||
ItemStack machine = new ItemStack(ForestryBlock.factoryTESR, 1, Defaults.DEFINITION_CENTRIFUGE_META);
|
||||
ItemStack machine = ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_CENTRIFUGE_META);
|
||||
RecipeTemplate template = generator.createRecipeTemplate(slots, machine);
|
||||
|
||||
for (MachineCentrifuge.Recipe recipe : MachineCentrifuge.RecipeManager.recipes) {
|
||||
@@ -52,9 +52,8 @@ public class CraftGuideCentrifuge implements RecipeProvider {
|
||||
@SuppressWarnings("unchecked")
|
||||
Entry<ItemStack, Integer>[] entries = recipe.products.entrySet().toArray(new Entry[0]);
|
||||
|
||||
for (int i = 0; i < Math.min(entries.length, 9); i++) {
|
||||
array[i] = entries[i].getValue() > 0 ? new Object[] { entries[i].getKey(), entries[i].getValue() } : null;
|
||||
}
|
||||
for (int i = 0; i < Math.min(entries.length, 9); i++)
|
||||
array[i] = entries[i].getValue() > 0 ? new Object[]{entries[i].getKey(), entries[i].getValue()} : null;
|
||||
|
||||
array[9] = recipe.resource;
|
||||
array[10] = machine;
|
||||
|
||||
@@ -44,7 +44,7 @@ public class CraftGuideFabricator implements RecipeProvider {
|
||||
if (ForestryBlock.factoryTESR == null)
|
||||
return;
|
||||
|
||||
ItemStack machine = new ItemStack(ForestryBlock.factoryPlain, 1, Defaults.DEFINITION_FABRICATOR_META);
|
||||
ItemStack machine = ForestryBlock.factoryPlain.getItemStack(1, Defaults.DEFINITION_FABRICATOR_META);
|
||||
RecipeTemplate template = generator.createRecipeTemplate(slots, machine);
|
||||
|
||||
for (MachineFabricator.Recipe recipe : MachineFabricator.RecipeManager.recipes) {
|
||||
|
||||
@@ -48,7 +48,7 @@ public class CraftGuideFermenter implements RecipeProvider {
|
||||
if (ForestryBlock.factoryTESR == null)
|
||||
return;
|
||||
|
||||
ItemStack machine = new ItemStack(ForestryBlock.factoryTESR, 1, Defaults.DEFINITION_FERMENTER_META);
|
||||
ItemStack machine = ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_FERMENTER_META);
|
||||
RecipeTemplate template = generator.createRecipeTemplate(slots, machine);
|
||||
List<Object> fuels = new ArrayList<Object>(FuelManager.fermenterFuel.keySet());
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ public class CraftGuideSqueezer implements RecipeProvider {
|
||||
if (ForestryBlock.factoryTESR == null)
|
||||
return;
|
||||
|
||||
ItemStack machine = new ItemStack(ForestryBlock.factoryTESR, 1, Defaults.DEFINITION_SQUEEZER_META);
|
||||
ItemStack machine = ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_SQUEEZER_META);
|
||||
RecipeTemplate template = generator.createRecipeTemplate(slots, machine);
|
||||
|
||||
for (MachineSqueezer.Recipe recipe : MachineSqueezer.RecipeManager.recipes) {
|
||||
|
||||
@@ -40,7 +40,7 @@ public class CraftGuideStill implements RecipeProvider {
|
||||
if (ForestryBlock.factoryTESR == null)
|
||||
return;
|
||||
|
||||
ItemStack machine = new ItemStack(ForestryBlock.factoryTESR, 1, Defaults.DEFINITION_STILL_META);
|
||||
ItemStack machine = ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_STILL_META);
|
||||
RecipeTemplate template = generator.createRecipeTemplate(slots, machine);
|
||||
|
||||
for (MachineStill.Recipe recipe : MachineStill.RecipeManager.recipes) {
|
||||
|
||||
Reference in new issue
Block a user