PaperMC/Spigot-Server-Patches/Fix-MC-93764.patch
Caleb Bassham 0c7c2af037 Fix NPE when setting a player's spectator target (#1596)
Fix NPE when setting a player's spectator target
2018-10-21 14:27:53 -05:00

20 lines
No EOL
721 B
Diff

From 0000000000000000000000000000000000000000 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
@@ -0,0 +0,0 @@ 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() {
--