mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 21:20:06 +00:00
quick fix : Redundant 'if' statement
This commit is contained in:
1 parent
28b094ea1a
commit
f384a4fe28
29 files changed
+48
-130
No files matched your search
@@ -13,10 +13,7 @@ public class ModExtraModifier extends ItemModifier {
|
||||
protected boolean canModify(ItemStack tool, ItemStack[] recipe) {
|
||||
if (tool != null && tool.getItem() instanceof IModifyable) {
|
||||
NBTTagCompound tags = this.getModifierTag(tool);
|
||||
if (tags.getBoolean(key)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return !tags.getBoolean(key);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user