From 9cd3bc4c16fa55a663a19c872d7dab4b08f66446 Mon Sep 17 00:00:00 2001 From: Zach Brown <1254957+zachbr@users.noreply.github.com> Date: Sun, 22 Jun 2014 15:41:56 -0500 Subject: [PATCH] Make destroyed boats drop the boat item --- ...e-destroyed-boats-drop-the-boat-item.patch | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 CraftBukkit-Patches/0159-Make-destroyed-boats-drop-the-boat-item.patch diff --git a/CraftBukkit-Patches/0159-Make-destroyed-boats-drop-the-boat-item.patch b/CraftBukkit-Patches/0159-Make-destroyed-boats-drop-the-boat-item.patch new file mode 100644 index 000000000..7a342b862 --- /dev/null +++ b/CraftBukkit-Patches/0159-Make-destroyed-boats-drop-the-boat-item.patch @@ -0,0 +1,61 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Zach Brown <1254957+zachbr@users.noreply.github.com> +Date: Fri, 30 May 2014 19:42:50 -0500 +Subject: [PATCH] Make destroyed boats drop the boat item + + +diff --git a/src/main/java/net/minecraft/server/EntityBoat.java b/src/main/java/net/minecraft/server/EntityBoat.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/net/minecraft/server/EntityBoat.java ++++ b/src/main/java/net/minecraft/server/EntityBoat.java +@@ -0,0 +0,0 @@ public class EntityBoat extends Entity { + if (!destroyEvent.isCancelled()) { + this.die(); + +- for (k = 0; k < 3; ++k) { +- this.a(Item.getItemOf(Blocks.WOOD), 1, 0.0F); +- } ++ // PaperSpigot start - Boats should drop boats!!!11 ++ //for (k = 0; k < 3; ++k) { ++ // this.a(Item.getItemOf(Blocks.WOOD), 1, 0.0F); ++ //} ++ ++ //for (k = 0; k < 2; ++k) { ++ // this.a(Items.STICK, 1, 0.0F); ++ //} + +- for (k = 0; k < 2; ++k) { +- this.a(Items.STICK, 1, 0.0F); ++ for (k = 0; k < 1; ++k) { ++ this.a(Items.BOAT, 1, 0.0F); + } ++ // PaperSpigot end + } + // CraftBukkit end + } +@@ -0,0 +0,0 @@ public class EntityBoat extends Entity { + + int l; + +- for (l = 0; l < 3; ++l) { +- this.a(Item.getItemOf(Blocks.WOOD), 1, 0.0F); +- } ++ // PaperSpigot start - Boats should drop boats!!!11 ++ //for (l = 0; l < 3; ++l) { ++ // this.a(Item.getItemOf(Blocks.WOOD), 1, 0.0F); ++ //} ++ ++ //for (l = 0; l < 2; ++l) { ++ // this.a(Items.STICK, 1, 0.0F); ++ //} + +- for (l = 0; l < 2; ++l) { +- this.a(Items.STICK, 1, 0.0F); ++ for (l = 0; l < 1; ++l) { ++ this.a(Items.BOAT, 1, 0.0F); + } ++ // PaperSpigot end + } + // CraftBukkit end + } +-- \ No newline at end of file