2014-07-23 03:04:05 +00:00
|
|
|
From 2061a29a13433a363db267060f55d7190c5752d4 Mon Sep 17 00:00:00 2001
|
2014-06-22 20:41:56 +00:00
|
|
|
From: Zach Brown <Zbob750@live.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
|
2014-07-21 20:46:54 +00:00
|
|
|
index c9f2b13..5a9a527 100644
|
2014-06-22 20:41:56 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityBoat.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityBoat.java
|
|
|
|
@@ -337,13 +337,19 @@ 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
|
|
|
|
}
|
|
|
|
@@ -454,13 +460,19 @@ 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
|
|
|
|
}
|
|
|
|
--
|
|
|
|
1.9.1
|
|
|
|
|