Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.launchwrapper.Launch;
import net.minecraft.util.IIcon;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.IBlockAccess;
Expand Down Expand Up @@ -271,6 +272,8 @@ protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, IBlock
CUSTOM;

/* Some util stuff for shared code between v* and r* */
public static final boolean fixedBottomFaceUV = (boolean) Launch.blackboard
.getOrDefault("hodgepodge.FixesConfig.fixBottomFaceUV", Boolean.FALSE);

public static IIcon getVIcon(TextureType type, TextureSubmap map, int x, int y, int z, int side) {
int variationSize = (type == TextureType.V9) ? 3 : 2;
Expand All @@ -291,6 +294,9 @@ public static IIcon getVIcon(TextureType type, TextureSubmap map, int x, int y,
//For DOWN, reverse the indexes for only Z
textureZ = (variationSize - textureZ - 1);
}*/
else if (side == 0 && fixedBottomFaceUV) {
textureX = variationSize - textureX - 1;
}

int index;
if (side == 0 || side == 1) {
Expand Down
Loading