Skip to content

Commit

Permalink
Revert OptiPNG colour depth reduction on common textures (-nx)
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Sep 8, 2023
1 parent e54f1cc commit 5916a51
Show file tree
Hide file tree
Showing 90 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import appeng.client.render.crafting.LightBakedModel;
import appeng.client.render.crafting.MonitorBakedModel;
import appeng.client.render.crafting.UnitBakedModel;
import appeng.core.AppEng;

import gripe._90.megacells.MEGACells;
import gripe._90.megacells.block.MEGACraftingUnitType;
Expand All @@ -36,9 +37,9 @@ public class MEGACraftingUnitModelProvider extends AbstractCraftingUnitModelProv
protected static final Material STORAGE_64M_LIGHT = texture("64m_storage_light");
protected static final Material STORAGE_256M_LIGHT = texture("256m_storage_light");
protected static final Material MONITOR_BASE = texture("monitor_base");
protected static final Material MONITOR_LIGHT_DARK = texture("monitor_light_dark");
protected static final Material MONITOR_LIGHT_MEDIUM = texture("monitor_light_medium");
protected static final Material MONITOR_LIGHT_BRIGHT = texture("monitor_light_bright");
protected static final Material MONITOR_LIGHT_DARK = monitorLight("dark");
protected static final Material MONITOR_LIGHT_MEDIUM = monitorLight("medium");
protected static final Material MONITOR_LIGHT_BRIGHT = monitorLight("bright");

public MEGACraftingUnitModelProvider(MEGACraftingUnitType type) {
super(type);
Expand Down Expand Up @@ -93,4 +94,10 @@ private static Material texture(String name) {
MATERIALS.add(material);
return material;
}

private static Material monitorLight(String suffix) {
var material = new Material(InventoryMenu.BLOCK_ATLAS, AppEng.makeId("block/crafting/monitor_light_" + suffix));
MATERIALS.add(material);
return material;
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private void driveCell(String texture) {

private void interfaceOrProviderPart(ItemDefinition<?> part) {
var partPath = part.id().getPath().substring(6);
withExistingParent(partPath, CABLE_INTERFACE)
withExistingParent(part.id().getPath(), CABLE_INTERFACE)
.texture("back", "part/" + partPath + "_back")
.texture("front", "part/" + partPath)
.texture("sides", "part/" + partPath + "_sides");
Expand Down

0 comments on commit 5916a51

Please sign in to comment.