Skip to content

Commit

Permalink
fix: painting offsets due to 1.21 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Jul 4, 2024
1 parent 04f5158 commit 7a39879
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ author = masa
mod_file_name = litematica-fabric

# Current mod version
mod_version = 0.18.999-sakura.12
mod_version = 0.18.999-sakura.13

# Required malilib version
malilib_version = 0.19.999-sakura.6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,14 +443,14 @@ public static void placeEntitiesToWorldWithinChunk(World world, ChunkPos chunkPo
{
Direction right = paintingEntity.getHorizontalFacing().rotateYCounterclockwise();

if ((paintingEntity.getVariant().value().width() % 32) == 0 &&
if ((paintingEntity.getVariant().value().width() % 2) == 0 &&
right.getDirection() == AxisDirection.POSITIVE)
{
x -= 1.0 * right.getOffsetX();
z -= 1.0 * right.getOffsetZ();
}

if ((paintingEntity.getVariant().value().height() % 32) == 0)
if ((paintingEntity.getVariant().value().height() % 2) == 0)
{
y -= 1.0;
}
Expand Down

0 comments on commit 7a39879

Please sign in to comment.