diff options
author | Noah van der Aa <[email protected]> | 2023-12-07 13:03:14 +0100 |
---|---|---|
committer | Noah van der Aa <[email protected]> | 2023-12-07 13:03:14 +0100 |
commit | 9223f05a400f63be1cb5700261816960f9cf8391 (patch) | |
tree | b21a968f21ec00928dbcfb48f3d045f40486b7f8 | |
parent | 6577db6dd63cddaa06aa8041c6dc45ab704fe9e6 (diff) | |
download | Paper-9223f05a400f63be1cb5700261816960f9cf8391.tar.gz Paper-9223f05a400f63be1cb5700261816960f9cf8391.zip |
Updated Upstream (CraftBukkit)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing
CraftBukkit Changes:
c9cb08551 SPIGOT-7536: Using Crafter crashes server
-rw-r--r-- | patches/server/1052-Hotfix-DefaultDispenseItemBehavior-spawnItem.patch | 39 | ||||
-rw-r--r-- | patches/server/1052-Temp-adventure-update.patch (renamed from patches/server/1053-Temp-adventure-update.patch) | 0 | ||||
m--------- | work/CraftBukkit | 0 |
3 files changed, 0 insertions, 39 deletions
diff --git a/patches/server/1052-Hotfix-DefaultDispenseItemBehavior-spawnItem.patch b/patches/server/1052-Hotfix-DefaultDispenseItemBehavior-spawnItem.patch deleted file mode 100644 index ee842ebff4..0000000000 --- a/patches/server/1052-Hotfix-DefaultDispenseItemBehavior-spawnItem.patch +++ /dev/null @@ -1,39 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Owen1212055 <[email protected]> -Date: Wed, 6 Dec 2023 19:44:06 -0500 -Subject: [PATCH] Hotfix DefaultDispenseItemBehavior#spawnItem - -This method should generally be cleaned up entirely, but, lol. - -For now just readd the original vanilla method. - -diff --git a/src/main/java/net/minecraft/core/dispenser/DefaultDispenseItemBehavior.java b/src/main/java/net/minecraft/core/dispenser/DefaultDispenseItemBehavior.java -index 379890ae05b2fb4bd81b2fa907413d3736ba1169..a553e8d4544567bcd0bcb354a35036b1f7954e6d 100644 ---- a/src/main/java/net/minecraft/core/dispenser/DefaultDispenseItemBehavior.java -+++ b/src/main/java/net/minecraft/core/dispenser/DefaultDispenseItemBehavior.java -@@ -49,6 +49,25 @@ public class DefaultDispenseItemBehavior implements DispenseItemBehavior { - return stack; - } - -+ // Paper start - Readd original NMS method -+ public static void spawnItem(Level world, ItemStack itemstack, int i, Direction enumdirection, Position iposition) { -+ double d0 = iposition.x(); -+ double d1 = iposition.y(); -+ double d2 = iposition.z(); -+ -+ if (enumdirection.getAxis() == Direction.Axis.Y) { -+ d1 -= 0.125D; -+ } else { -+ d1 -= 0.15625D; -+ } -+ -+ ItemEntity entityitem = new ItemEntity(world, d0, d1, d2, itemstack); -+ double d3 = world.random.nextDouble() * 0.1D + 0.2D; -+ -+ entityitem.setDeltaMovement(world.random.triangle((double) enumdirection.getStepX() * d3, 0.0172275D * (double) i), world.random.triangle(0.2D, 0.0172275D * (double) i), world.random.triangle((double) enumdirection.getStepZ() * d3, 0.0172275D * (double) i)); -+ world.addFreshEntity(entityitem); -+ } -+ // Paper end - // CraftBukkit start - void -> boolean return, IPosition -> ISourceBlock last argument, dropper - public static boolean spawnItem(Level world, ItemStack itemstack, int i, Direction enumdirection, BlockSource sourceblock, boolean dropper) { - if (itemstack.isEmpty()) return true; diff --git a/patches/server/1053-Temp-adventure-update.patch b/patches/server/1052-Temp-adventure-update.patch index ad2dfe8fde..ad2dfe8fde 100644 --- a/patches/server/1053-Temp-adventure-update.patch +++ b/patches/server/1052-Temp-adventure-update.patch diff --git a/work/CraftBukkit b/work/CraftBukkit -Subproject 368c48be1b32ddc3c062f46b96e4450ea66be93 +Subproject c9cb085517dd8a0042a53bf376664397209b185 |