Skip to content

Commit

Permalink
Make snow no longer place on waterwheels correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
voidsong-dragonfly committed Jun 16, 2024
1 parent 5fa9e57 commit e9198a2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ protected void addTags(Provider p_256380_)
.add(StoneDecoration.CONCRETE_REINFORCED_TILE.get())
.add(IEBlocks.TO_SLAB.get(StoneDecoration.CONCRETE_REINFORCED_TILE.getId()).get())
.add(MetalDecoration.REINFORCED_WINDOW.get());
tag(BlockTags.SNOW_LAYER_CANNOT_SURVIVE_ON)
.add(WoodenDevices.WATERMILL.get())
.add(WoodenDevices.WINDMILL.get());
//Add parity tags to gravel & sand for IE similar blocks
tag(BlockTags.BAMBOO_PLANTABLE_ON)
.add(StoneDecoration.SLAG_GRAVEL.get())
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ public boolean isBlocked()
{
BlockPos pos = getBlockPos().relative(fdW, 2).relative(fdY, 2);
BlockState state = level.getBlockState(pos);
if(Block.isFaceFull(state.getShape(level, pos), fdW.getOpposite())&&!state.canBeReplaced())
if(Block.isFaceFull(state.getShape(level, pos), fdW.getOpposite()))
return true;
if(Block.isFaceFull(state.getShape(level, pos), fdY.getOpposite())&&!state.canBeReplaced())
if(Block.isFaceFull(state.getShape(level, pos), fdY.getOpposite()))
return true;
}
//Check side blocks for solid blocks
Expand All @@ -202,15 +202,15 @@ public boolean isBlocked()
{
BlockPos pos = getBlockPos().relative(side, 3).relative(side.getClockWise(getFacing().getAxis()));
BlockState state = level.getBlockState(pos);
if(Block.isFaceFull(state.getShape(level, pos), side.getOpposite())&&!state.canBeReplaced())
if(Block.isFaceFull(state.getShape(level, pos), side.getOpposite()))
return true;
pos = getBlockPos().relative(side, 3);
state = level.getBlockState(pos);
if(Block.isFaceFull(state.getShape(level, pos), side.getOpposite())&&!state.canBeReplaced())
if(Block.isFaceFull(state.getShape(level, pos), side.getOpposite()))
return true;
pos = getBlockPos().relative(side, 3).relative(side.getCounterClockWise(getFacing().getAxis()));
state = level.getBlockState(pos);
if(Block.isFaceFull(state.getShape(level, pos), side.getOpposite())&&!state.canBeReplaced())
if(Block.isFaceFull(state.getShape(level, pos), side.getOpposite()))
return true;
}
return false;
Expand Down

0 comments on commit e9198a2

Please sign in to comment.