Skip to content

Commit

Permalink
Vitreous Pickaxe silktouches glass panes (#4499)
Browse files Browse the repository at this point in the history
Fixes #4496 by adding the `c:glass_panes` (Fabric) and
`forge:glass_panes` (Forge) block tags to the respective implementations
of `XplatAbstractions.isInGlassTag` implementations.
  • Loading branch information
TheRealWormbo authored Dec 1, 2023
1 parent ed1d45e commit cbc8267
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -552,10 +552,11 @@ public TagKey<Block> getOreTag() {
// No standard so we have to check both :wacko:
private final TagKey<Block> cGlass = TagKey.create(Registries.BLOCK, new ResourceLocation("c", "glass"));
private final TagKey<Block> cGlassBlocks = TagKey.create(Registries.BLOCK, new ResourceLocation("c", "glass_blocks"));
private final TagKey<Block> cGlassPanes = TagKey.create(Registries.BLOCK, new ResourceLocation("c", "glass_panes"));

@Override
public boolean isInGlassTag(BlockState state) {
return state.is(cGlass) || state.is(cGlassBlocks);
return state.is(cGlass) || state.is(cGlassBlocks) || state.is(cGlassPanes);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ public TagKey<Block> getOreTag() {

@Override
public boolean isInGlassTag(BlockState state) {
return state.is(Tags.Blocks.GLASS);
return state.is(Tags.Blocks.GLASS) || state.is(Tags.Blocks.GLASS_PANES);
}

@Override
Expand Down

0 comments on commit cbc8267

Please sign in to comment.