23w33a
This commit is contained in:
parent
eb15718023
commit
8d1058cc3f
|
|
@ -22,7 +22,7 @@ public class MinecraftMixin {
|
||||||
/**
|
/**
|
||||||
* To mitigate the effect of leaked client worlds, clear most of the data structures that waste memory.
|
* To mitigate the effect of leaked client worlds, clear most of the data structures that waste memory.
|
||||||
*/
|
*/
|
||||||
@Inject(method = "clearLevel(Lnet/minecraft/client/gui/screens/Screen;)V", at = @At(value = "FIELD", opcode = Opcodes.PUTFIELD, target = "Lnet/minecraft/client/Minecraft;level:Lnet/minecraft/client/multiplayer/ClientLevel;"))
|
@Inject(method = "disconnect(Lnet/minecraft/client/gui/screens/Screen;)V", at = @At(value = "FIELD", opcode = Opcodes.PUTFIELD, target = "Lnet/minecraft/client/Minecraft;level:Lnet/minecraft/client/multiplayer/ClientLevel;"))
|
||||||
private void clearLevelDataForLeaks(CallbackInfo ci) {
|
private void clearLevelDataForLeaks(CallbackInfo ci) {
|
||||||
if(this.level != null) {
|
if(this.level != null) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import java.util.concurrent.ExecutorService;
|
||||||
@Mixin(Minecraft.class)
|
@Mixin(Minecraft.class)
|
||||||
@ClientOnlyMixin
|
@ClientOnlyMixin
|
||||||
public class MinecraftMixin {
|
public class MinecraftMixin {
|
||||||
@Redirect(method = { "<init>", "reloadResourcePacks(Z)Ljava/util/concurrent/CompletableFuture;" }, at = @At(value = "INVOKE", target = "Lnet/minecraft/Util;backgroundExecutor()Ljava/util/concurrent/ExecutorService;", ordinal = 0))
|
@Redirect(method = { "<init>", "reloadResourcePacks(ZLnet/minecraft/client/Minecraft$GameLoadCookie;)Ljava/util/concurrent/CompletableFuture;" }, at = @At(value = "INVOKE", target = "Lnet/minecraft/Util;backgroundExecutor()Ljava/util/concurrent/ExecutorService;", ordinal = 0))
|
||||||
private ExecutorService getResourceReloadExecutor() {
|
private ExecutorService getResourceReloadExecutor() {
|
||||||
return ModernFix.resourceReloadExecutor();
|
return ModernFix.resourceReloadExecutor();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ junit_version=5.10.0-M1
|
||||||
mixinextras_version=0.2.0-beta.9
|
mixinextras_version=0.2.0-beta.9
|
||||||
|
|
||||||
mod_id=modernfix
|
mod_id=modernfix
|
||||||
minecraft_version=23w32a
|
minecraft_version=23w33a
|
||||||
enabled_platforms=fabric
|
enabled_platforms=fabric
|
||||||
forge_version=1.20.1-47.0.14
|
forge_version=1.20.1-47.0.14
|
||||||
# parchment_version=2023.07.09
|
# parchment_version=2023.07.09
|
||||||
|
|
@ -15,7 +15,7 @@ rei_version=11.0.597
|
||||||
ctm_version=1.20.1-1.1.8+4
|
ctm_version=1.20.1-1.1.8+4
|
||||||
kubejs_version=1902.6.0-build.142
|
kubejs_version=1902.6.0-build.142
|
||||||
rhino_version=1902.2.2-build.268
|
rhino_version=1902.2.2-build.268
|
||||||
supported_minecraft_versions=23w32a
|
supported_minecraft_versions=23w33a
|
||||||
|
|
||||||
fabric_loader_version=0.14.22
|
fabric_loader_version=0.14.22
|
||||||
fabric_api_version=0.86.1+1.20.2
|
fabric_api_version=0.86.1+1.20.2
|
||||||
|
|
@ -27,4 +27,4 @@ diagonal_fences_version=4558828
|
||||||
|
|
||||||
spark_version=4587310
|
spark_version=4587310
|
||||||
|
|
||||||
use_fabric_api_at_runtime=true
|
use_fabric_api_at_runtime=false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user