Akarin 1.12.2 0.3.2 LTS Release
This commit is contained in:
@@ -119,7 +119,7 @@ public abstract class MixinMinecraftServer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (WorldServer world : this.worlds) {
|
for (WorldServer world : this.worlds) {
|
||||||
executor.take();
|
if (world.getWorld().getKeepSpawnInMemory()) executor.take();
|
||||||
this.server.getPluginManager().callEvent(new WorldLoadEvent(world.getWorld()));
|
this.server.getPluginManager().callEvent(new WorldLoadEvent(world.getWorld()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
package io.akarin.server.mixin.cps;
|
package io.akarin.server.mixin.cps;
|
||||||
|
|
||||||
import java.util.Iterator;
|
|
||||||
|
|
||||||
import org.spigotmc.SlackActivityAccountant;
|
import org.spigotmc.SlackActivityAccountant;
|
||||||
import org.spongepowered.asm.mixin.Final;
|
import org.spongepowered.asm.mixin.Final;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
@@ -64,7 +62,7 @@ public abstract class MixinChunkProviderServer {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
it.remove(); // Life is strange
|
it.remove();
|
||||||
if (--remainingChunks <= targetSize || activityAccountant.activityTimeIsExhausted()) break; // more slack since the target size not work as intended
|
if (--remainingChunks <= targetSize || activityAccountant.activityTimeIsExhausted()) break; // more slack since the target size not work as intended
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -74,6 +72,14 @@ public abstract class MixinChunkProviderServer {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Redirect(method = "unloadChunk", at = @At(
|
||||||
|
value = "INVOKE",
|
||||||
|
target = "it/unimi/dsi/fastutil/longs/Long2ObjectOpenHashMap.remove(J)Ljava/lang/Object;"
|
||||||
|
))
|
||||||
|
private Object remove(Long2ObjectOpenHashMap<Chunk> chunks, long chunkHash) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@Overwrite
|
@Overwrite
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return "ServerChunkCache: " + chunks.size();
|
return "ServerChunkCache: " + chunks.size();
|
||||||
|
|||||||
Reference in New Issue
Block a user