mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-21 18:37:42 +01:00
more patches
This commit is contained in:
@@ -10,13 +10,13 @@ index 3086ee023685781d94e2fb99fc8dff5264f01165..74c1047305cac5673e274096709c757e
|
||||
+++ b/src/main/java/net/minecraft/network/protocol/game/PacketPlayOutUpdateTime.java
|
||||
@@ -7,7 +7,7 @@ import net.minecraft.network.protocol.Packet;
|
||||
public class PacketPlayOutUpdateTime implements Packet<PacketListenerPlayOut> {
|
||||
|
||||
|
||||
private long a; private final void setWorldAge(final long age) { this.a = age; } private final long getWorldAge() { return this.a; } // Paper - OBFHELPER
|
||||
- private long b;
|
||||
+ private long b; public void setPlayerTime(long time) { this.b = time; } // Purpur
|
||||
|
||||
|
||||
public PacketPlayOutUpdateTime() {}
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/level/WorldServer.java b/src/main/java/net/minecraft/server/level/WorldServer.java
|
||||
index 5567d12b2b74b0fcf17e600d2c7b8ab88c2f3b13..9276500e4cc2a0d2d374b3f1393410e8295b3b4d 100644
|
||||
--- a/src/main/java/net/minecraft/server/level/WorldServer.java
|
||||
@@ -34,16 +34,16 @@ index 5567d12b2b74b0fcf17e600d2c7b8ab88c2f3b13..9276500e4cc2a0d2d374b3f1393410e8
|
||||
private final StructureManager structureManager;
|
||||
private final boolean Q;
|
||||
+ private double fakeTime; // Purpur
|
||||
|
||||
|
||||
|
||||
|
||||
// CraftBukkit start
|
||||
@@ -401,6 +403,7 @@ public class WorldServer extends World implements GeneratorAccessSeed {
|
||||
this.getServer().addWorld(this.getWorld()); // CraftBukkit
|
||||
|
||||
|
||||
this.asyncChunkTaskManager = new com.destroystokyo.paper.io.chunk.ChunkTaskManager(this); // Paper
|
||||
+ this.fakeTime = this.worldDataServer.getDayTime(); // Purpur
|
||||
}
|
||||
|
||||
|
||||
// CraftBukkit start
|
||||
@@ -718,7 +721,21 @@ public class WorldServer extends World implements GeneratorAccessSeed {
|
||||
this.nextTickListBlock.nextTick(); // Paper
|
||||
@@ -67,9 +67,9 @@ index 5567d12b2b74b0fcf17e600d2c7b8ab88c2f3b13..9276500e4cc2a0d2d374b3f1393410e8
|
||||
+ // Purpur end
|
||||
this.setDayTime(this.worldData.getDayTime() + 1L);
|
||||
}
|
||||
|
||||
|
||||
@@ -727,6 +744,12 @@ public class WorldServer extends World implements GeneratorAccessSeed {
|
||||
|
||||
|
||||
public void setDayTime(long i) {
|
||||
this.worldDataServer.setDayTime(i);
|
||||
+ // Purpur start
|
||||
@@ -79,7 +79,7 @@ index 5567d12b2b74b0fcf17e600d2c7b8ab88c2f3b13..9276500e4cc2a0d2d374b3f1393410e8
|
||||
+ this.worldDataServer.setDayTime((long) i);
|
||||
+ // Purpur end
|
||||
}
|
||||
|
||||
|
||||
public void doMobSpawning(boolean flag, boolean flag1) {
|
||||
diff --git a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
index 11f699eb7d68013df708a874a214da6be3fe6773..b11a71a1dda78098f1995f289a1fb45c9a02eeb6 100644
|
||||
@@ -88,7 +88,7 @@ index 11f699eb7d68013df708a874a214da6be3fe6773..b11a71a1dda78098f1995f289a1fb45c
|
||||
@@ -150,6 +150,13 @@ public class PurpurWorldConfig {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+ public int daytimeTicks = 12000;
|
||||
+ public int nighttimeTicks = 12000;
|
||||
+ private void daytimeCycleSettings() {
|
||||
|
||||
Reference in New Issue
Block a user