mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Upstream has released updates that appears to apply and compile correctly Paper Changes: 6e7dc3f81 [Auto] Updated Upstream (CraftBukkit) 664ae4554 [Auto] Updated Upstream (CraftBukkit) dafc7b8f8 Fix off by one error for scheduling block ticks (#4014) 5791e512b Fix MaterialTags tests to actually pass 115972651 Expand MaterialTags v2 (#4009) 5aaf1c514 prevent path space splitting in testServer.sh (#4007) a8ef09b82 Tighten logic for handling target tick times in tick scheduler (#4010) d5ccd4139 Remove ability to disable async chunks unless single core cpu 76728529f Fix Light Prioritization Issues 2d66b5be8 [Auto] Updated Upstream (CraftBukkit) 51d10c201 Add missing strikeLighting call to World#spigot()#strikeLightningEffect Tuinity Changes: 416ed5e Fix 3 tick pistons not functioning correctly 489faf0 Fix up lock handling for UserCache
23 lines
788 B
Diff
23 lines
788 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
|
|
Date: Sat, 1 Feb 2020 22:22:16 -0600
|
|
Subject: [PATCH] MoonPhase API
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
|
index e8bbe1545e..f51f9c8d11 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
|
@@ -2616,4 +2616,11 @@ public class CraftWorld implements World {
|
|
return spigot;
|
|
}
|
|
// Spigot end
|
|
+
|
|
+ // Purpur start
|
|
+ @Override
|
|
+ public net.pl3x.purpur.MoonPhase getMoonPhase() {
|
|
+ return net.pl3x.purpur.MoonPhase.getPhase(getFullTime() / 24000L);
|
|
+ }
|
|
+ // Purpur end
|
|
}
|