Skip to content

Commit

Permalink
fix: mirroring Stairs showing the wrong directions / stair shapes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Dec 19, 2024
1 parent 96f6cfb commit 1eaab8c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ author = masa
mod_file_name = litematica-fabric

# Current mod version
mod_version = 0.19.54-sakura.8
mod_version = 0.19.54-sakura.9

# Required malilib version
malilib_version = 645a31d7d8
malilib_version = a16f53ecba

# Minecraft, Fabric Loader and API and mappings versions
minecraft_version_out = 1.21
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ public static boolean placeBlocksWithinChunk(World world, ChunkPos chunkPos, Str

if (state.getBlock() instanceof StairsBlock && mirrorMain != BlockMirror.NONE)
{
stairShape = state.get(Properties.STAIR_SHAPE);
stairFacing = state.get(Properties.HORIZONTAL_FACING);
//stairShape = state.get(Properties.STAIR_SHAPE);
//stairFacing = state.get(Properties.HORIZONTAL_FACING);
//System.out.printf("placeBlocksWithinChunk() - STAIRS: pre-Mirror:0: pos: [%s] // state [%s] // facing: [%s]\n",
//pos.toShortString(), state.toString(), stairFacing.getName());
}
Expand All @@ -242,6 +242,7 @@ public static boolean placeBlocksWithinChunk(World world, ChunkPos chunkPos, Str
//pos.toShortString(), state.toString(), state.get(Properties.HORIZONTAL_FACING).getName(),
//stairFacing.getName(), stairShape.name());

/*
if (mirrorMain == BlockMirror.LEFT_RIGHT &&
(stairFacing == Direction.EAST || stairFacing == Direction.WEST) &&
(state.get(Properties.STAIR_SHAPE) == StairShape.INNER_RIGHT || state.get(Properties.STAIR_SHAPE) == StairShape.INNER_LEFT))
Expand All @@ -263,6 +264,7 @@ else if (state.get(Properties.STAIR_SHAPE) == StairShape.OUTER_LEFT)
state = state.with(Properties.STAIR_SHAPE, StairShape.OUTER_RIGHT);
}
}
*/

//System.out.printf("placeBlocksWithinChunk() - STAIRS:post-Mirror:2: pos: [%s] // state [%s] // facing: [%s] (ORG Facing: %s, ORG Shape: %s)\n",
//pos.toShortString(), state.toString(), state.get(Properties.HORIZONTAL_FACING).getName(),
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@

"depends": {
"minecraft": ">=1.21 <=1.21.1",
"malilib": ">=0.21.5-sakura.5"
"malilib": ">=0.21.5-sakura.6"
}
}

0 comments on commit 1eaab8c

Please sign in to comment.