mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 23:13:09 +00:00
Crash fixes, fix more blocks
This commit is contained in:
1 parent
b022c8d693
commit
b80f998688
136 files changed
+340
-261
No files matched your search
@@ -25,7 +25,12 @@ public class RecipeMiniFlower extends RecipeManaInfusion {
|
||||
@Override
|
||||
public boolean matches(ItemStack stack) {
|
||||
ResourceLocation key = BotaniaAPI.internalHandler.getStackSubTileKey(stack);
|
||||
ResourceLocation input = BotaniaAPI.internalHandler.getStackSubTileKey(getInput().getMatchingStacks()[0]);
|
||||
ItemStack[] matching = getInput().getMatchingStacks();
|
||||
if(matching.length == 0)
|
||||
return false;
|
||||
|
||||
|
||||
ResourceLocation input = BotaniaAPI.internalHandler.getStackSubTileKey(matching[0]);
|
||||
return key != null && key.equals(input);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user