Skip to content

Commit

Permalink
Add missing SideOnly Annotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
davboecki committed Sep 22, 2013
1 parent 73b6513 commit f5457bc
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions common/logisticspipes/items/ItemModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@

import org.lwjgl.input.Keyboard;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

import buildcraft.transport.BlockGenericPipe;
import buildcraft.transport.Pipe;

Expand Down Expand Up @@ -95,6 +98,7 @@ private class Module {
private String name;
private int id;
private Class<? extends LogisticsModule> moduleClass;
@SideOnly(Side.CLIENT)
private Icon moduleIcon = null;

private Module(int id, String name, Class<? extends LogisticsModule> moduleClass) {
Expand All @@ -103,13 +107,6 @@ private Module(int id, String name, Class<? extends LogisticsModule> moduleClass
this.moduleClass = moduleClass;
}

private Module(int id, String name, Class<? extends LogisticsModule> moduleClass, Icon textureIndex) {
this.id = id;
this.name = name;
this.moduleClass = moduleClass;
this.moduleIcon = textureIndex;
}

private LogisticsModule getILogisticsModule() {
if(moduleClass == null) return null;
try {
Expand Down Expand Up @@ -145,7 +142,8 @@ private String getName() {
private Icon getIcon() {
return moduleIcon;
}


@SideOnly(Side.CLIENT)
private void registerModuleIcon(IconRegister par1IconRegister) {
if(moduleClass == null) {
this.moduleIcon = par1IconRegister.registerIcon("logisticspipes:" + getUnlocalizedName().replace("item.","") + "/blank");
Expand Down Expand Up @@ -295,6 +293,7 @@ public String getItemDisplayName(ItemStack itemstack) {
}

@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister par1IconRegister) {
if(modules.size()<=0) return;
for(Module module:modules) {
Expand Down

0 comments on commit f5457bc

Please sign in to comment.