mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-21 12:32:09 +00:00
- Added isHidden SideOnly check ( Fixxes #68 )
This commit is contained in:
1 parent
aaebaf4108
commit
a0de7b5122
1 file changed
+5
@@ -1,5 +1,7 @@
|
||||
package makeo.gadomancy.common.research;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
@@ -22,13 +24,16 @@ public class IfAnyParentResearchItem extends SimpleResearchItem {
|
||||
|
||||
public IfAnyParentResearchItem(String key, int col, int row, int complex, ItemStack icon, AspectList tags) {
|
||||
super(key, col, row, complex, icon, tags);
|
||||
setHidden();
|
||||
}
|
||||
|
||||
public IfAnyParentResearchItem(String key, int col, int row, int complex, ResourceLocation icon, AspectList tags) {
|
||||
super(key, col, row, complex, icon, tags);
|
||||
setHidden();
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean isHidden() {
|
||||
if(anyParents != null) {
|
||||
boolean hasFoundAny = false;
|
||||
|
||||
Reference in new issue
Block a user