diff --git a/patches/api/Add-API-to-get-Material-from-Boats-and-Minecarts.patch b/patches/api/Add-API-to-get-Material-from-Boats-and-Minecarts.patch index 4bda578fc5..31d69cbbbf 100644 --- a/patches/api/Add-API-to-get-Material-from-Boats-and-Minecarts.patch +++ b/patches/api/Add-API-to-get-Material-from-Boats-and-Minecarts.patch @@ -8,24 +8,19 @@ diff --git a/src/main/java/org/bukkit/entity/Boat.java b/src/main/java/org/bukki index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/org/bukkit/entity/Boat.java +++ b/src/main/java/org/bukkit/entity/Boat.java -@@ -0,0 +0,0 @@ - package org.bukkit.entity; - -+import org.bukkit.Material; - import org.bukkit.TreeSpecies; - import org.jetbrains.annotations.NotNull; - @@ -0,0 +0,0 @@ public interface Boat extends Vehicle { - */ - @Deprecated - public void setWorkOnLand(boolean workOnLand); + ON_LAND, + IN_AIR; + } + + // Paper start + /** + * Gets the {@link Material} that represents this Boat type. + * + * @return the boat material. ++ * @deprecated use {@link #getBoatType()} and {@link Type#getMaterial()} + */ ++ @Deprecated + @NotNull + public Material getBoatMaterial(); + // Paper end diff --git a/patches/server/Call-StructureGrowEvent-for-mangrove-propagule.patch b/patches/server/Call-StructureGrowEvent-for-mangrove-propagule.patch deleted file mode 100644 index 9a3b296f88..0000000000 --- a/patches/server/Call-StructureGrowEvent-for-mangrove-propagule.patch +++ /dev/null @@ -1,39 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Noah van der Aa -Date: Mon, 20 Jun 2022 15:46:46 +0200 -Subject: [PATCH] Call StructureGrowEvent for mangrove propagule - - -diff --git a/src/main/java/net/minecraft/world/level/block/MangrovePropaguleBlock.java b/src/main/java/net/minecraft/world/level/block/MangrovePropaguleBlock.java -index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 ---- a/src/main/java/net/minecraft/world/level/block/MangrovePropaguleBlock.java -+++ b/src/main/java/net/minecraft/world/level/block/MangrovePropaguleBlock.java -@@ -0,0 +0,0 @@ public class MangrovePropaguleBlock extends SaplingBlock implements SimpleWaterl - public void randomTick(BlockState state, ServerLevel world, BlockPos pos, RandomSource random) { - if (!isHanging(state)) { - if (random.nextInt(7) == 0) { -+ world.captureTreeGeneration = true; // Paper - this.advanceTree(world, pos, state, random); -+ // Paper start -+ world.captureTreeGeneration = false; -+ if (world.capturedBlockStates.size() > 0) { -+ org.bukkit.TreeType treeType = SaplingBlock.treeType; -+ SaplingBlock.treeType = null; -+ org.bukkit.Location location = new org.bukkit.Location(world.getWorld(), pos.getX(), pos.getY(), pos.getZ()); -+ java.util.List blocks = new java.util.ArrayList<>(world.capturedBlockStates.values()); -+ world.capturedBlockStates.clear(); -+ org.bukkit.event.world.StructureGrowEvent event = null; -+ if (treeType != null) { -+ event = new org.bukkit.event.world.StructureGrowEvent(location, treeType, false, null, blocks); -+ org.bukkit.Bukkit.getPluginManager().callEvent(event); -+ } -+ if (event == null || !event.isCancelled()) { -+ for (org.bukkit.block.BlockState blockstate : blocks) { -+ blockstate.update(true); -+ } -+ } -+ } -+ // Paper end - } - - } else { diff --git a/patches/server/Implement-API-to-get-Material-from-Boats-and-Minecar.patch b/patches/server/Implement-API-to-get-Material-from-Boats-and-Minecar.patch index e988854507..6d94f7ad0c 100644 --- a/patches/server/Implement-API-to-get-Material-from-Boats-and-Minecar.patch +++ b/patches/server/Implement-API-to-get-Material-from-Boats-and-Minecar.patch @@ -15,13 +15,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + // Paper start + @Override + public org.bukkit.Material getBoatMaterial() { -+ return org.bukkit.craftbukkit.util.CraftMagicNumbers.getMaterial(getHandle().getDropItem()); ++ return this.getBoatType().getMaterial(); + } + // Paper end + @Override - public net.minecraft.world.entity.vehicle.Boat getHandle() { - return (net.minecraft.world.entity.vehicle.Boat) entity; + public Status getStatus() { + return CraftBoat.boatStatusFromNms(this.getHandle().status); diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecart.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecart.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecart.java diff --git a/work/Bukkit b/work/Bukkit index d41796deb5..607ce370a5 160000 --- a/work/Bukkit +++ b/work/Bukkit @@ -1 +1 @@ -Subproject commit d41796deb5e14fd69558db71324e8feb12a1effa +Subproject commit 607ce370a5e526985c050c9cec6abfc5fb2f475d diff --git a/work/CraftBukkit b/work/CraftBukkit index 991aeda121..9a8e080108 160000 --- a/work/CraftBukkit +++ b/work/CraftBukkit @@ -1 +1 @@ -Subproject commit 991aeda1218e72e9237942071e7ea55cc77b541c +Subproject commit 9a8e080108222cf09aed735a3b5089d3da6350c6 diff --git a/work/Spigot b/work/Spigot index 475f600885..14a2382f7d 160000 --- a/work/Spigot +++ b/work/Spigot @@ -1 +1 @@ -Subproject commit 475f600885a8f58aee83aa7473f37dfe6b8ac3b5 +Subproject commit 14a2382f7da41c880fdbf64536fb222df98dc111