mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 23:13:09 +00:00
More cleaning
This commit is contained in:
1 parent
db6da27ce1
commit
37c64a1688
14 files changed
+92
-185
No files matched your search
@@ -17,7 +17,7 @@ import vazkii.botania.api.BotaniaAPI;
|
||||
|
||||
public class RecipeMiniFlower extends RecipeManaInfusion {
|
||||
|
||||
public RecipeMiniFlower(ResourceLocation flower, ResourceLocation mini, int mana) {
|
||||
public RecipeMiniFlower(ResourceLocation mini, ResourceLocation flower, int mana) {
|
||||
super(BotaniaAPI.internalHandler.getSubTileAsStack(flower), Ingredient.fromStacks(BotaniaAPI.internalHandler.getSubTileAsStack(mini)), mana);
|
||||
setCatalyst(RecipeManaInfusion.alchemyState);
|
||||
}
|
||||
@@ -25,7 +25,7 @@ public class RecipeMiniFlower extends RecipeManaInfusion {
|
||||
@Override
|
||||
public boolean matches(ItemStack stack) {
|
||||
ResourceLocation key = BotaniaAPI.internalHandler.getStackSubTileKey(stack);
|
||||
ResourceLocation input = getInput() instanceof ResourceLocation ? (ResourceLocation) getInput() : BotaniaAPI.internalHandler.getStackSubTileKey((ItemStack) getInput());
|
||||
ResourceLocation input = BotaniaAPI.internalHandler.getStackSubTileKey(getInput().getMatchingStacks()[0]);
|
||||
return key != null && key.equals(input);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user