mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 02:22:12 +01:00
20 lines
1 KiB
Diff
20 lines
1 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Jake Potrebic <jake.m.potrebic@gmail.com>
|
||
|
Date: Sun, 26 Mar 2023 13:17:41 -0700
|
||
|
Subject: [PATCH] Properly cancel bed block placement
|
||
|
|
||
|
|
||
|
diff --git a/src/main/java/net/minecraft/world/level/block/BedBlock.java b/src/main/java/net/minecraft/world/level/block/BedBlock.java
|
||
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||
|
--- a/src/main/java/net/minecraft/world/level/block/BedBlock.java
|
||
|
+++ b/src/main/java/net/minecraft/world/level/block/BedBlock.java
|
||
|
@@ -0,0 +0,0 @@ public class BedBlock extends HorizontalDirectionalBlock implements EntityBlock
|
||
|
|
||
|
world.setBlock(blockposition1, (BlockState) state.setValue(BedBlock.PART, BedPart.HEAD), 3);
|
||
|
world.blockUpdated(pos, Blocks.AIR);
|
||
|
- state.updateNeighbourShapes(world, pos, 3);
|
||
|
+ // state.updateNeighbourShapes(world, pos, 3); // Paper - shapes will be updated on successful block place
|
||
|
}
|
||
|
|
||
|
}
|