Fix Powered Rails acting like Activator Rails due to misaligned patch

This commit is contained in:
LexManos committed 2024-11-06 23:38:09 -08:00
1 parent 46cfe50108
commit e2a68ad903
1 file changed
+8 -8
@@ -1,14 +1,14 @@
--- a/net/minecraft/world/level/block/Blocks.java
+++ b/net/minecraft/world/level/block/Blocks.java
@@ -2800,7 +_,7 @@
@@ -766,7 +_,7 @@
public static final Block RED_BED = registerBed("red_bed", DyeColor.RED);
public static final Block BLACK_BED = registerBed("black_bed", DyeColor.BLACK);
public static final Block POWERED_RAIL = register(
- "powered_rail", PoweredRailBlock::new, BlockBehaviour.Properties.of().noCollission().strength(0.7F).sound(SoundType.METAL)
+ "powered_rail", prop -> new PoweredRailBlock(prop, true), BlockBehaviour.Properties.of().noCollission().strength(0.7F).sound(SoundType.METAL)
);
public static final Block QUARTZ_STAIRS = registerLegacyStair("quartz_stairs", QUARTZ_BLOCK);
public static final Block ACTIVATOR_RAIL = register(
- "activator_rail", PoweredRailBlock::new, BlockBehaviour.Properties.of().noCollission().strength(0.7F).sound(SoundType.METAL)
+ "activator_rail", prop -> new PoweredRailBlock(prop, false), BlockBehaviour.Properties.of().noCollission().strength(0.7F).sound(SoundType.METAL)
);
public static final Block DROPPER = register(
"dropper",
public static final Block DETECTOR_RAIL = register(
"detector_rail", DetectorRailBlock::new, BlockBehaviour.Properties.of().noCollission().strength(0.7F).sound(SoundType.METAL)
@@ -6552,14 +_,5 @@
private static Block register(String p_50796_, BlockBehaviour.Properties p_362760_) {