You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
index 6e314abd57045693fd6016bce2b791eb68e40bb5..9b35652ed35c0b7ddb200239d932c83945ea4575 100644
33
+
index 17d021c341fb382768a0e8971bd559a11804151f..9de064829001199d6cd1bbeac05b6ee7c3000e4b 100644
34
34
--- a/net/minecraft/server/level/ServerLevel.java
35
35
+++ b/net/minecraft/server/level/ServerLevel.java
36
-
@@ -212,6 +212,7 @@ public class ServerLevel extends Level implements ServerEntityGetter, WorldGenLe
37
-
public final java.util.UUID uuid;
36
+
@@ -213,6 +213,7 @@ public class ServerLevel extends Level implements ServerEntityGetter, WorldGenLe
38
37
public boolean hasPhysicsEvent = true; // Paper - BlockPhysicsEvent
39
38
public boolean hasEntityMoveEvent; // Paper - Add EntityMoveEvent
39
+
private final alternate.current.wire.WireHandler wireHandler = new alternate.current.wire.WireHandler(this); // Paper - optimize redstone (Alternate Current)
40
40
+ public boolean hasRidableMoveEvent = false; // Purpur - Ridables
41
41
42
42
@Override
43
43
public @Nullable LevelChunk getChunkIfLoaded(int x, int z) {
this.chunkDataController = new ca.spottedleaf.moonrise.patches.chunk_system.io.datacontroller.ChunkDataController((ServerLevel)(Object)this, this.chunkTaskScheduler);
+ if (this.purpurConfig.rainStopsAfterSleep) // Purpur - Option for if rain and thunder should stop on sleep
153
153
this.serverLevelData.setRaining(false, org.bukkit.event.weather.WeatherChangeEvent.Cause.SLEEP); // Paper - Add cause to Weather/ThunderChangeEvents
154
154
// If we stop due to everyone sleeping we should reset the weather duration to some other random value.
155
155
// Not that everyone ever manages to get the whole server to sleep at the same time....
156
-
@@ -1196,6 +_,7 @@
156
+
@@ -1197,6 +_,7 @@
157
157
this.serverLevelData.setRainTime(0);
158
158
}
159
159
// CraftBukkit end
160
160
+ if (this.purpurConfig.thunderStopsAfterSleep) // Purpur - Option for if rain and thunder should stop on sleep
161
161
this.serverLevelData.setThundering(false, org.bukkit.event.weather.ThunderChangeEvent.Cause.SLEEP); // Paper - Add cause to Weather/ThunderChangeEvents
162
162
// CraftBukkit start
163
163
// If we stop due to everyone sleeping we should reset the weather duration to some other random value.
164
-
@@ -2644,7 +_,7 @@
164
+
@@ -2674,7 +_,7 @@
165
165
// Spigot start
166
166
if (entity.getBukkitEntity() instanceof org.bukkit.inventory.InventoryHolder && (!(entity instanceof ServerPlayer) || entity.getRemovalReason() != Entity.RemovalReason.KILLED)) { // SPIGOT-6876: closeInventory clears death message
167
167
// Paper start - Fix merchant inventory not closing on entity removal
public @Nullable com.destroystokyo.paper.event.entity.PlayerNaturallySpawnCreaturesEvent playerNaturallySpawnedEvent; // Paper - PlayerNaturallySpawnCreaturesEvent
5
5
public @Nullable String clientBrandName = null; // Paper - Brand support
6
6
public @Nullable org.bukkit.event.player.PlayerQuitEvent.QuitReason quitReason = null; // Paper - Add API for quit reason; there are a lot of changes to do if we change all methods leading to the event
this.connection.internalTeleport(PositionMoveRotation.of(teleportTransition), teleportTransition.relatives()); // CraftBukkit - use internal teleport without event
0 commit comments