Skip to content

Commit

Permalink
Remove usages of deprecated render classes (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss authored Jan 10, 2025
1 parent ff6878b commit 0fce1e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import gregtech.api.enums.Textures;
import gregtech.api.objects.GTCopiedBlockTexture;
import gregtech.api.render.TextureFactory;
import gregtech.api.util.GTLanguageManager;
import gregtech.common.blocks.BlockCasingsAbstract;
import gregtech.common.blocks.MaterialCasings;
Expand Down Expand Up @@ -44,7 +44,7 @@ public BlockCasingSpaceElevator() {
super(ItemCasingSpaceElevator.class, "gt.blockcasingsSE", MaterialCasings.INSTANCE);

for (byte b = 0; b < NUMBER_OF_CASINGS; b = (byte) (b + 1)) {
Textures.BlockIcons.casingTexturePages[32][b] = new GTCopiedBlockTexture(this, 6, b);
Textures.BlockIcons.casingTexturePages[32][b] = TextureFactory.of(this, b);
}

GTLanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "Space Elevator Base Casing");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import gregtech.api.enums.Textures;
import gregtech.api.objects.GTCopiedBlockTexture;
import gregtech.api.render.TextureFactory;
import gregtech.api.util.GTLanguageManager;
import gregtech.common.blocks.BlockCasingsAbstract;
import gregtech.common.blocks.MaterialCasings;
Expand All @@ -42,7 +42,7 @@ public BlockCasingSpaceElevatorMotor() {
super(ItemCasingSpaceElevatorMotor.class, "gt.blockcasingsSEMotor", MaterialCasings.INSTANCE);

for (byte b = 0; b < NUMBER_OF_MOTORS; b = (byte) (b + 1)) {
Textures.BlockIcons.casingTexturePages[32][b + 16] = new GTCopiedBlockTexture(this, 6, b);
Textures.BlockIcons.casingTexturePages[32][b + 16] = TextureFactory.of(this, b);
}

GTLanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "Space Elevator Motor MK-I");
Expand Down

0 comments on commit 0fce1e7

Please sign in to comment.