mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-18 03:25:38 +00:00
Small Cleanup (#518)
* Deobfuscate parameters * Fix generics * Replace deprecated methods * Add `serialVersionUID`s * Fix static access * Add default switch case * Close OutputStreams * Fix wrong variable usage * Explicitly declare exceptions
This commit is contained in:
1 parent
2507634196
commit
165afa2910
31 files changed
+42
-59
No files matched your search
@@ -1,7 +1,5 @@
|
||||
package codechicken.nei.util;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import net.minecraft.nbt.NBTBase;
|
||||
@@ -34,8 +32,7 @@ public class NBTHelper {
|
||||
private static boolean matchTagCompound(NBTTagCompound template, NBTTagCompound target) {
|
||||
if (template.tagMap.size() > target.tagMap.size()) return false;
|
||||
|
||||
// noinspection unchecked
|
||||
for (String key : (Set<String>) template.func_150296_c()) {
|
||||
for (String key : template.func_150296_c()) {
|
||||
if (!matchTag(template.getTag(key), target.getTag(key))) return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user