2016-06-23 04:43:02 +02:00
|
|
|
From 6f1b42e1117b77a826bef99f49e7da1d8e22dd96 Mon Sep 17 00:00:00 2001
|
2016-03-28 00:52:36 +02:00
|
|
|
From: Fabse <fabse@uwmc.info>
|
|
|
|
Date: Mon, 28 Mar 2016 00:46:46 +0200
|
|
|
|
Subject: [PATCH] Minecart drop name workaround
|
|
|
|
|
|
|
|
This is a workaround for MC-68446 (or similar).
|
|
|
|
In Survival Minecraft this bug only shows in minecart drops, so this is the only thing fixed here.
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityMinecartAbstract.java b/src/main/java/net/minecraft/server/EntityMinecartAbstract.java
|
2016-06-23 04:18:41 +02:00
|
|
|
index 4438d83..9df7dfc 100644
|
2016-03-28 00:52:36 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityMinecartAbstract.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityMinecartAbstract.java
|
2016-06-09 05:57:14 +02:00
|
|
|
@@ -172,7 +172,7 @@ public abstract class EntityMinecartAbstract extends Entity implements INamableT
|
2016-03-28 00:52:36 +02:00
|
|
|
if (this.world.getGameRules().getBoolean("doEntityDrops")) {
|
|
|
|
ItemStack itemstack = new ItemStack(Items.MINECART, 1);
|
|
|
|
|
|
|
|
- if (this.getName() != null) {
|
|
|
|
+ if (this.hasCustomName()) { // Paper - Only set item name if custom name is set. Workaround for MC-68446
|
|
|
|
itemstack.c(this.getName());
|
|
|
|
}
|
|
|
|
|
|
|
|
--
|
2016-06-23 04:18:41 +02:00
|
|
|
2.9.0
|
2016-03-28 00:52:36 +02:00
|
|
|
|