added health and portal_cooldown

This commit is contained in:
gnembon committed 2020-08-20 23:24:16 -03:00
1 parent c6973d35f6
commit bc9f3e89e0
2 files changed
+49 -7

No files matched your search

@@ -60,7 +60,10 @@ public abstract class ServerChunkManager_tickMixin
private boolean skipChunkTicking(ServerWorld serverWorld)
{
boolean debug = serverWorld.isDebugWorld();
if (!TickSpeed.process_entities) {
if (!TickSpeed.process_entities)
{
// simplified chunk tick iteration assuming world is frozen otherwise as suggested by Hadron67
// to be kept in sync with the original injection source
if (!debug){
List<ChunkHolder> holders = Lists.newArrayList(((ThreadedAnvilChunkStorageInterface)threadedAnvilChunkStorage).getChunks());
Collections.shuffle(holders);