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
Tuinity Changes:
8750b61 Fix entity count in timings and add water-ambient to per world spawn limits
2d9c2c8 Improve concurrent UserCache access
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 39decca9c5..94fad039f1 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
|
@@ -2615,4 +2615,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
|
|
}
|