mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-28 15:35:59 +00:00
Spring Cleaning (#127)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
1544c1bf0d
commit
3b2b31f733
413 files changed
+9272
-17658
No files matched your search
@@ -50,7 +50,7 @@ public class AltarRecipe {
|
||||
}
|
||||
|
||||
return tierCheck >= minTier && this.requiredItem.isItemEqual(comparedStack)
|
||||
&& (this.useTag ? this.areRequiredTagsEqual(comparedStack) : true);
|
||||
&& (!this.useTag || this.areRequiredTagsEqual(comparedStack));
|
||||
}
|
||||
|
||||
public boolean areRequiredTagsEqual(ItemStack comparedStack) {
|
||||
@@ -69,11 +69,10 @@ public class AltarRecipe {
|
||||
}
|
||||
|
||||
protected boolean areTagsEqual(NBTTagCompound tag, NBTTagCompound comparedTag) {
|
||||
Set set = tag.func_150296_c();
|
||||
Set<String> set = tag.func_150296_c();
|
||||
|
||||
for (Object obj : set) {
|
||||
if (obj instanceof String) {
|
||||
String str = (String) obj;
|
||||
if (obj instanceof String str) {
|
||||
|
||||
NBTBase baseTag = comparedTag.getTag(str);
|
||||
|
||||
|
||||
Reference in new issue
Block a user