3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-17 03:50:08 +01:00
Paper/Spigot-Server-Patches/0400-Fix-MC-93764.patch
Caleb Bassham 64840b3018 Fix NPE when setting a player's spectator target (#1596)
Fix NPE when setting a player's spectator target
2018-10-21 20:27:53 +01:00

23 Zeilen
733 B
Diff

From 99ed7aeec6f05ab04eb9ad55c35c706c538debd8 Mon Sep 17 00:00:00 2001
From: BillyGalbreath <Blake.Galbreath@GMail.com>
Date: Fri, 19 Oct 2018 19:38:45 -0500
Subject: [PATCH] Fix MC-93764
diff --git a/src/main/java/net/minecraft/server/WorldProviderTheEnd.java b/src/main/java/net/minecraft/server/WorldProviderTheEnd.java
index d830b761..b6e0b6c7 100644
--- a/src/main/java/net/minecraft/server/WorldProviderTheEnd.java
+++ b/src/main/java/net/minecraft/server/WorldProviderTheEnd.java
@@ -25,7 +25,7 @@ public class WorldProviderTheEnd extends WorldProvider {
}
public float a(long var1, float var3) {
- return 0.0F;
+ return 0.5F; // Paper - fix MC-93764
}
public boolean p() {
--
2.19.1