File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,14 @@ Subject: [PATCH] Fix Dispenser Shulker Crash
6
6
This will now check to make sure the shulker box was actually placed before interacting with it.
7
7
8
8
diff --git a/src/main/java/net/minecraft/server/DispenserRegistry.java b/src/main/java/net/minecraft/server/DispenserRegistry.java
9
- index 167b830ec0d10ca37c0a4b25d49e36a4d461645e..7d67f4d66b742b9c51315fd0438fcd2fadca0fba 100644
9
+ index 167b830ec0d10ca37c0a4b25d49e36a4d461645e..5786dce4f22b8eaa9ad0d5914b8b979b97ac9bb8 100644
10
10
--- a/src/main/java/net/minecraft/server/DispenserRegistry.java
11
11
+++ b/src/main/java/net/minecraft/server/DispenserRegistry.java
12
- @@ -756,8 +756,13 @@ public class DispenserRegistry {
13
- if (this.b) {
12
+ @@ -757,7 +757,12 @@ public class DispenserRegistry {
14
13
EnumDirection enumdirection1 = world.isEmpty(blockposition.down()) ? enumdirection : EnumDirection.UP;
15
14
IBlockData iblockdata = block.getBlockData().set(BlockShulkerBox.a, enumdirection1);
16
- -
15
+
17
16
- world.setTypeUpdate(blockposition, iblockdata);
18
- + \
19
17
+ // Dionysus start - fix Dispenser crashes
20
18
+ boolean wasPlaced = world.setTypeUpdate(blockposition, iblockdata);
21
19
+ if (!wasPlaced) {
You can’t perform that action at this time.
0 commit comments