Skip to content

Commit

Permalink
fixed server crashes
Browse files Browse the repository at this point in the history
forge doesn't like wen client only variables are sided.
  • Loading branch information
EternalBlueFlame committed Jul 18, 2024
1 parent 907e3ea commit e4a90a3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/main/java/train/common/tile/TileBridgePillar.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ public boolean canUpdate()
return false;
}

@SideOnly(Side.CLIENT)

static final train.client.render.models.blocks.ModelBridgePillar modelBridgePillar = new train.client.render.models.blocks.ModelBridgePillar();
@SideOnly(Side.CLIENT)

static final ResourceLocation texture = new ResourceLocation(Info.modID, Info.modelTexPrefix + "bridgePillar.png");

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/train/common/tile/TileCrafterTierI.java
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ public ResourceLocation getTexture(int x, int y, int z){
return texture;
}

@SideOnly(Side.CLIENT)

static final ResourceLocation texture = new ResourceLocation(Info.modID, "textures/blocks/assembly_1.png");

}
2 changes: 1 addition & 1 deletion src/main/java/train/common/tile/TileCrafterTierII.java
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public ResourceLocation getTexture(int x, int y, int z){
return texture;
}

@SideOnly(Side.CLIENT)

static final ResourceLocation texture = new ResourceLocation(Info.modID, "textures/blocks/assembly_2.png");

}
2 changes: 1 addition & 1 deletion src/main/java/train/common/tile/TileCrafterTierIII.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public ResourceLocation getTexture(int x, int y, int z){
return texture;
}

@SideOnly(Side.CLIENT)

static final ResourceLocation texture = new ResourceLocation(Info.modID, "textures/blocks/assembly_3.png");

}
4 changes: 2 additions & 2 deletions src/main/java/train/common/tile/TileEntityDistil.java
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,10 @@ public ResourceLocation getTexture(int x, int y, int z){
textureOn:textureOff;
}

@SideOnly(Side.CLIENT)

static final ResourceLocation textureOn = new ResourceLocation(Info.modID, "textures/blocks/distil_on.png");

@SideOnly(Side.CLIENT)

static final ResourceLocation textureOff = new ResourceLocation(Info.modID, "textures/blocks/distil_off.png");

}

0 comments on commit e4a90a3

Please sign in to comment.