mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-24 22:14:31 +00:00
quick fix : Redundant array creation
This commit is contained in:
1 parent
aa1b25c8e5
commit
d4ffbd85f4
8 files changed
+19
-23
No files matched your search
@@ -31,7 +31,7 @@ public class SmelteryDamageSource extends DamageSource {
|
||||
String s1 = s + ".player";
|
||||
return entityliving1 != null && StatCollector.canTranslate(s1)
|
||||
? new ChatComponentTranslation(
|
||||
s1, new Object[] {par1EntityLiving.func_145748_c_(), entityliving1.func_145748_c_()})
|
||||
: new ChatComponentTranslation(s, new Object[] {par1EntityLiving.func_145748_c_()});
|
||||
s1, par1EntityLiving.func_145748_c_(), entityliving1.func_145748_c_())
|
||||
: new ChatComponentTranslation(s, par1EntityLiving.func_145748_c_());
|
||||
}
|
||||
}
|
||||
@@ -670,13 +670,11 @@ public class TinkerSmeltery {
|
||||
|
||||
// Glass Recipes
|
||||
GameRegistry.addRecipe(
|
||||
new ItemStack(Items.glass_bottle, 3), new Object[] {"# #", " # ", '#', TinkerSmeltery.clearGlass});
|
||||
new ItemStack(Items.glass_bottle, 3), "# #", " # ", '#', TinkerSmeltery.clearGlass);
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(
|
||||
new ItemStack(Blocks.daylight_detector),
|
||||
new Object[] {"GGG", "QQQ", "WWW", 'G', "blockGlass", 'Q', "gemQuartz", 'W', "slabWood"}));
|
||||
GameRegistry.addRecipe(new ItemStack(Blocks.beacon, 1), new Object[] {
|
||||
"GGG", "GSG", "OOO", 'G', TinkerSmeltery.clearGlass, 'S', Items.nether_star, 'O', Blocks.obsidian
|
||||
});
|
||||
"GGG", "QQQ", "WWW", 'G', "blockGlass", 'Q', "gemQuartz", 'W', "slabWood"));
|
||||
GameRegistry.addRecipe(new ItemStack(Blocks.beacon, 1), "GGG", "GSG", "OOO", 'G', TinkerSmeltery.clearGlass, 'S', Items.nether_star, 'O', Blocks.obsidian);
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(
|
||||
new ItemStack(TinkerSmeltery.glassPane, 16, 0), "GGG", "GGG", 'G', TinkerSmeltery.clearGlass));
|
||||
|
||||
@@ -818,16 +816,14 @@ public class TinkerSmeltery {
|
||||
}
|
||||
|
||||
public void addOreDictionarySmelteryRecipes() {
|
||||
List<FluidType> exceptions = Arrays.asList(new FluidType[] {
|
||||
FluidType.getFluidType("Water"),
|
||||
FluidType.getFluidType("Stone"),
|
||||
FluidType.getFluidType("Emerald"),
|
||||
FluidType.getFluidType("Quartz"),
|
||||
FluidType.getFluidType("Ender"),
|
||||
FluidType.getFluidType("Glass"),
|
||||
FluidType.getFluidType("Slime"),
|
||||
FluidType.getFluidType("Obsidian")
|
||||
});
|
||||
List<FluidType> exceptions = Arrays.asList(FluidType.getFluidType("Water"),
|
||||
FluidType.getFluidType("Stone"),
|
||||
FluidType.getFluidType("Emerald"),
|
||||
FluidType.getFluidType("Quartz"),
|
||||
FluidType.getFluidType("Ender"),
|
||||
FluidType.getFluidType("Glass"),
|
||||
FluidType.getFluidType("Slime"),
|
||||
FluidType.getFluidType("Obsidian"));
|
||||
for (Map.Entry<String, FluidType> stringFluidTypeEntry : FluidType.fluidTypes.entrySet()) {
|
||||
FluidType ft = stringFluidTypeEntry.getValue();
|
||||
if (exceptions.contains(ft)) continue;
|
||||
|
||||
Reference in new issue
Block a user