Skip to content

Commit

Permalink
Lang and casing texture funny-ness
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorbatron committed Oct 17, 2024
1 parent dcdf6b6 commit 9ac4abc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

import java.util.List;

import gregtech.api.GTValues;
import gregtech.client.renderer.ICubeRenderer;
import gregtech.client.renderer.texture.Textures;
import net.minecraft.client.resources.I18n;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
Expand Down Expand Up @@ -66,4 +69,19 @@ public void renderMetaTileEntity(CCRenderState renderState, Matrix4 translation,
ZBGTTextures.MAINTENANCE_OVERLAY_STERILE.renderSided(getFrontFacing(), renderState, translation, pipeline);
}
}

@Override
public ICubeRenderer getBaseTexture() {
MultiblockControllerBase controller = getController();
if (controller != null) {
return this.hatchTexture = controller.getBaseTexture(this);
} else if (this.hatchTexture != null) {
if (hatchTexture != Textures.getInactiveTexture(hatchTexture)) {
return this.hatchTexture = Textures.getInactiveTexture(hatchTexture);
}
return this.hatchTexture;
} else {
return Textures.VOLTAGE_CASINGS[GTValues.UHV];
}
}
}
2 changes: 2 additions & 0 deletions src/main/resources/assets/zbgt/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ zbgt.machine.yottank_me_hatch.priority=Priority
zbgt.machine.yottank_me_hatch.sticky.enabled=Disable sticky mode
zbgt.machine.yottank_me_hatch.sticky.disabled=Enable sticky mode

zbgt.machine.sterile_cleaning_hatch.name=Automatic Sterilization Maintenance Hatch


# Covers
metaitem.cover.dual_cover.lv.name=LV Dual Cover
Expand Down

0 comments on commit 9ac4abc

Please sign in to comment.