-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78ec2bf
commit 22b3025
Showing
6 changed files
with
143 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: MrPowerGamerBR <[email protected]> | ||
Date: Sun, 26 Nov 2023 12:52:34 -0300 | ||
Date: Tue, 26 Dec 2023 16:45:54 -0300 | ||
Subject: [PATCH] Revert "Fix MC-117075: TE Unload Lag Spike" | ||
|
||
This reverts commit 188c1c5b77133f7c3da9c67a97432d79d50d2b34. | ||
This reverts commit f5e3e154a00754c18d557401cfb8d4aad5bc45e9. | ||
|
||
diff --git a/src/main/java/net/minecraft/world/level/Level.java b/src/main/java/net/minecraft/world/level/Level.java | ||
index f5e3c87581cbdc762806ad4412b68d3c84612b88..0740a7e90c8b7947448990cd9e76328d7d4a7e95 100644 | ||
index fdb86e3bcd48c9a27ca91e105bcd035de5781923..ed736827a7741a54e3a712cf5fcd19195aebaee5 100644 | ||
--- a/src/main/java/net/minecraft/world/level/Level.java | ||
+++ b/src/main/java/net/minecraft/world/level/Level.java | ||
@@ -1281,8 +1281,6 @@ public abstract class Level implements LevelAccessor, AutoCloseable { | ||
|
@@ -18,15 +18,7 @@ index f5e3c87581cbdc762806ad4412b68d3c84612b88..0740a7e90c8b7947448990cd9e76328d | |
for (tileTickPosition = 0; tileTickPosition < this.blockEntityTickers.size(); tileTickPosition++) { // Paper - Disable tick limiters | ||
this.tileTickPosition = (this.tileTickPosition < this.blockEntityTickers.size()) ? this.tileTickPosition : 0; | ||
TickingBlockEntity tickingblockentity = (TickingBlockEntity) this.blockEntityTickers.get(this.tileTickPosition); | ||
@@ -1290,6 +1288,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable { | ||
if (tickingblockentity == null) { | ||
this.getCraftServer().getLogger().severe("Spigot has detected a null entity and has removed it, preventing a crash"); | ||
tilesThisCycle--; | ||
+ this.blockEntityTickers.remove(this.tileTickPosition--); | ||
continue; | ||
} | ||
// Spigot end | ||
@@ -1297,7 +1296,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable { | ||
@@ -1291,7 +1289,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable { | ||
if (tickingblockentity.isRemoved()) { | ||
// Spigot start | ||
tilesThisCycle--; | ||
|
@@ -35,7 +27,7 @@ index f5e3c87581cbdc762806ad4412b68d3c84612b88..0740a7e90c8b7947448990cd9e76328d | |
// Spigot end | ||
} else if (flag && this.shouldTickBlocksAt(tickingblockentity.getPos())) { | ||
tickingblockentity.tick(); | ||
@@ -1308,7 +1307,6 @@ public abstract class Level implements LevelAccessor, AutoCloseable { | ||
@@ -1302,7 +1300,6 @@ public abstract class Level implements LevelAccessor, AutoCloseable { | ||
// Paper end - execute chunk tasks during tick | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.