Skip to content

Commit

Permalink
Fix #4705 and #4727
Browse files Browse the repository at this point in the history
  • Loading branch information
Vazkii committed Apr 9, 2024
1 parent d74a14f commit 03dd2cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static WoodSet addWoodSet(ZRegister event, ZetaModule module, String name
set.stairs = event.getVariantRegistry().addStairs((IZetaBlock) set.planks, null).getBlock();

set.fence = new ZetaFenceBlock(name + "_fence", module, OldMaterials.wood().mapColor(color).strength(2.0F, 3.0F).sound(SoundType.WOOD));
set.fenceGate = new ZetaFenceGateBlock(name + "_fence_gate", module, type, OldMaterials.wood().mapColor(color).strength(2.0F, 3.0F).sound(SoundType.WOOD)).setCreativeTab(CreativeModeTabs.BUILDING_BLOCKS);
set.fenceGate = new ZetaFenceGateBlock(name + "_fence_gate", module, type, OldMaterials.wood().mapColor(color).strength(2.0F, 3.0F).sound(SoundType.WOOD).forceSolidOn()).setCreativeTab(CreativeModeTabs.BUILDING_BLOCKS);

set.door = new ZetaDoorBlock(setType, name + "_door", module, OldMaterials.wood().mapColor(color).strength(3.0F).sound(SoundType.WOOD).noOcclusion());
set.trapdoor = new ZetaTrapdoorBlock(setType, name + "_trapdoor", module, OldMaterials.wood().mapColor(color).strength(3.0F).sound(SoundType.WOOD).noOcclusion().isValidSpawn((s, g, p, e) -> false));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public IronRodBlock(ZetaModule module) {
.mapColor(DyeColor.GRAY)
.strength(5F, 10F)
.sound(SoundType.METAL)
.noOcclusion());
.noOcclusion()
.forceSolidOn());

module.zeta.registry.registerBlock(this, "iron_rod", true);
CreativeTabManager.addToCreativeTab(CreativeModeTabs.REDSTONE_BLOCKS, this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public final void register(ZRegister event) {
.mapColor(MapColor.NETHER)
.requiresCorrectToolForDrops()
.sound(SoundType.NETHER_BRICKS)
.strength(2.0F, 6.0F))
.strength(2.0F, 6.0F)
.forceSolidOn())
.setCreativeTab(CreativeModeTabs.BUILDING_BLOCKS, Blocks.NETHER_BRICK_FENCE, false);;
}
}

0 comments on commit 03dd2cc

Please sign in to comment.