mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 00:56:39 +01:00
1c77d64713
having spoken to mojang about this the general issue is data which shouldn't have been saved in the first place, so if we lose this data it's not really an issue, bar being annoying spammy. if the spam gets on your nerves, shamefully, all you can really do is forceUpgrade to get the conversions of the way. Dropping as this breaks other aspects of the server and bar being spammy seems to have no other real negative outcomes
22 lines
1 KiB
Diff
22 lines
1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Spottedleaf <Spottedleaf@users.noreply.github.com>
|
|
Date: Sun, 20 Jun 2021 21:55:59 -0700
|
|
Subject: [PATCH] Fix PlayerDropItemEvent using wrong item
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/player/Player.java b/src/main/java/net/minecraft/world/entity/player/Player.java
|
|
index d286d88a3c3f93dbfa92de9421e320c92cd96350..1bccd932851045c374e3092d33dc77fab680d0db 100644
|
|
--- a/src/main/java/net/minecraft/world/entity/player/Player.java
|
|
+++ b/src/main/java/net/minecraft/world/entity/player/Player.java
|
|
@@ -709,6 +709,11 @@ public abstract class Player extends LivingEntity {
|
|
}
|
|
|
|
double d0 = this.getEyeY() - 0.30000001192092896D;
|
|
+ // Paper start
|
|
+ ItemStack tmp = stack.copy();
|
|
+ stack.setCount(0);
|
|
+ stack = tmp;
|
|
+ // Paper end
|
|
ItemEntity entityitem = new ItemEntity(this.level, this.getX(), d0, this.getZ(), stack);
|
|
|
|
entityitem.setPickUpDelay(40);
|