diff options
author | Lulu13022002 <[email protected]> | 2024-10-27 18:47:50 +0100 |
---|---|---|
committer | Lulu13022002 <[email protected]> | 2024-10-27 18:47:50 +0100 |
commit | 4d873026726a150bcfe5cc6924bdd4dc8510d909 (patch) | |
tree | 885533374720c7c80bff4f23ab17faf5c836cde7 /patches/server/0473-Add-BlockPreDispenseEvent.patch | |
parent | 02bca1e6558bf4ac0cbf928d48e90f497b10b0a3 (diff) | |
download | Paper-4d873026726a150bcfe5cc6924bdd4dc8510d909.tar.gz Paper-4d873026726a150bcfe5cc6924bdd4dc8510d909.zip |
Fix NPE and StackOverflowError for dispensers
Diffstat (limited to 'patches/server/0473-Add-BlockPreDispenseEvent.patch')
-rw-r--r-- | patches/server/0473-Add-BlockPreDispenseEvent.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0473-Add-BlockPreDispenseEvent.patch b/patches/server/0473-Add-BlockPreDispenseEvent.patch index d280bd07f1..d2ba7470a3 100644 --- a/patches/server/0473-Add-BlockPreDispenseEvent.patch +++ b/patches/server/0473-Add-BlockPreDispenseEvent.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Add BlockPreDispenseEvent diff --git a/src/main/java/net/minecraft/world/level/block/DispenserBlock.java b/src/main/java/net/minecraft/world/level/block/DispenserBlock.java -index f4853a5ff8a45efcda2d7781c1fa897c47d8ea46..a02f24448b002824b068278fa427003008c0d0f1 100644 +index 352f5412fc469a1fde6f14ffcaf00e88613b2704..9f99a9ec8f8269a0aeee2d6aa68f8a344f5f64b6 100644 --- a/src/main/java/net/minecraft/world/level/block/DispenserBlock.java +++ b/src/main/java/net/minecraft/world/level/block/DispenserBlock.java @@ -107,6 +107,7 @@ public class DispenserBlock extends BaseEntityBlock { @@ -17,7 +17,7 @@ index f4853a5ff8a45efcda2d7781c1fa897c47d8ea46..a02f24448b002824b068278fa4270030 tileentitydispenser.setItem(i, idispensebehavior.dispense(sourceblock, itemstack)); } diff --git a/src/main/java/net/minecraft/world/level/block/DropperBlock.java b/src/main/java/net/minecraft/world/level/block/DropperBlock.java -index 91b514967405115f22edf4255775361a672e5c2f..ddecf443df3679e3098eb54edd19585a0512e342 100644 +index 3e09d4b11c881b9c7d3447df379286238076cfee..1762415720caa722600ab7e81344ee9168e42011 100644 --- a/src/main/java/net/minecraft/world/level/block/DropperBlock.java +++ b/src/main/java/net/minecraft/world/level/block/DropperBlock.java @@ -71,6 +71,7 @@ public class DropperBlock extends DispenserBlock { |