Skip to content

Commit

Permalink
Fix upsidedown slabs and stairs being
Browse files Browse the repository at this point in the history
  • Loading branch information
Helinos committed Feb 4, 2025
1 parent 949f6a5 commit f77ea1e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ mod_menu_version=3.0.0
halplibe_version=5.1.2

# Mod
mod_version=0.1.1
mod_version=0.1.2-SNAPSHOT
mod_group=net.helinos
mod_name=moresnow
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public BlockLogicSnowySlabPainted(Block<T> block, Class<BlockLogicSlabPainted> b

@Override
public boolean canReplaceBlock(int id, int metadata) {
return id == getStoredBlockId(metadata);
return id == getStoredBlockId(metadata) && (metadata & 3) == 0;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ public BlockLogicSnowyStairsPainted(Block<T> block, Class<BlockLogicStairsPainte
super(block, blockLogic, null);
}

@Override
public boolean canReplaceBlock(int id, int metadata) {
return id == getStoredBlockId(metadata) && (metadata & 8) == 0;
}

@Override
public int getStoredBlockId(int metadata) {
return Blocks.STAIRS_PLANKS_PAINTED.id();
Expand Down

0 comments on commit f77ea1e

Please sign in to comment.