mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 11:06:29 +01:00
e4d10a6d67
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: 122289ff Add FaceAttachable interface to handle Grindstone facing in common with Switches a6db750e SPIGOT-5647: ZombieVillager entity should have getVillagerType() CraftBukkit Changes:bbe3d58e
SPIGOT-5650: Lectern.setPage(int) causes a NullPointerException3075579f
Add FaceAttachable interface to handle Grindstone facing in common with Switches95bd4238
SPIGOT-5647: ZombieVillager entity should have getVillagerType()4d975ac3
SPIGOT-5617: setBlockData does not work when NotPlayEvent is called by redstone current
23 lines
974 B
Diff
23 lines
974 B
Diff
From de1e7537f385c4ab4f0e527bc584e5c4fbef834e 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.25.1
|
|
|