mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 12:11:47 +01:00
57dd397155
Upstream has released updates that appears to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: b999860d SPIGOT-2304: Add LootGenerateEvent CraftBukkit Changes:77fd87e4
SPIGOT-2304: Implement LootGenerateEventa1a705ee
SPIGOT-5566: Doused campfires & fires should call EntityChangeBlockEvent41712edd
SPIGOT-5707: PersistentDataHolder not Persistent on API dropped Item
22 lines
974 B
Diff
22 lines
974 B
Diff
From 6400c06a994b01d69a401a0b73e718a000200ef3 Mon Sep 17 00:00:00 2001
|
|
From: Shane Freeder <theboyetronic@gmail.com>
|
|
Date: Wed, 22 Jan 2020 21:00:21 +0000
|
|
Subject: [PATCH] Fix comparator behavior for EntityPhanton goal
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityPhantom.java b/src/main/java/net/minecraft/server/EntityPhantom.java
|
|
index 82323bf4ac..90eeddb1af 100644
|
|
--- a/src/main/java/net/minecraft/server/EntityPhantom.java
|
|
+++ b/src/main/java/net/minecraft/server/EntityPhantom.java
|
|
@@ -224,7 +224,7 @@ public class EntityPhantom extends EntityFlying implements IMonster {
|
|
|
|
if (!list.isEmpty()) {
|
|
list.sort((entityhuman, entityhuman1) -> {
|
|
- return entityhuman.locY() > entityhuman1.locY() ? -1 : 1;
|
|
+ return Double.compare(entityhuman1.locY(), entityhuman.locY()); // Paper
|
|
});
|
|
Iterator iterator = list.iterator();
|
|
|
|
--
|
|
2.26.2
|
|
|