mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Add a workaround for bugged Minecart drop names
This commit is contained in:
parent
6e496985f5
commit
2a3cfd15eb
1 changed files with 22 additions and 0 deletions
22
Spigot-Server-Patches/Minecart-drop-name-workaround.patch
Normal file
22
Spigot-Server-Patches/Minecart-drop-name-workaround.patch
Normal file
|
@ -0,0 +1,22 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
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
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityMinecartAbstract.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityMinecartAbstract.java
|
||||
@@ -0,0 +0,0 @@ public abstract class EntityMinecartAbstract extends Entity implements INamableT
|
||||
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());
|
||||
}
|
||||
|
||||
--
|
Loading…
Reference in a new issue