mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Accounted for NMS getItem() returning null in recent commit.
This commit is contained in:
1 parent
85ab95cec7
commit
1bbeec1f75
2 files changed
+2
-1
No files matched your search
@@ -241,6 +241,7 @@ public class EntityTrackerEntry {
|
||||
|
||||
if (this.tracker instanceof EntityItem) {
|
||||
EntityItem entityitem = (EntityItem) this.tracker;
|
||||
if (entityitem.dead|| entityitem.itemStack == null) return null; // CraftBukkit
|
||||
Packet21PickupSpawn packet21pickupspawn = new Packet21PickupSpawn(entityitem);
|
||||
|
||||
entityitem.locX = (double) packet21pickupspawn.b / 32.0D;
|
||||
|
||||
Reference in new issue
Block a user