Skip to content

Commit 55f6e86

Browse files
committed
Merge 1.18 into 1.19.2
2 parents 18db311 + aa50c44 commit 55f6e86

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

forge/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ dependencies {
4444
modCompileOnly("curse.maven:supermartijncore-454372:4455391")
4545
modCompileOnly("vazkii.patchouli:Patchouli:1.19.2-77")
4646

47+
modCompileOnly("curse.maven:blueprint-382216:3991478")
48+
4749
common(project(path: ":common", configuration: "namedElements")) { transitive false }
4850
shadowCommon(project(path: ":common", configuration: "transformProductionForge")) { transitive = false }
4951
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package org.embeddedt.modernfix.forge.mixin.bugfix.blueprint_modif_memory_leak;
2+
3+
import com.google.gson.Gson;
4+
import com.teamabnormals.blueprint.core.util.modification.ObjectModificationManager;
5+
import com.teamabnormals.blueprint.core.util.modification.selection.SelectionSpace;
6+
import net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener;
7+
import org.embeddedt.modernfix.annotation.RequiresMod;
8+
import org.spongepowered.asm.mixin.Mixin;
9+
import org.spongepowered.asm.mixin.Shadow;
10+
import org.spongepowered.asm.mixin.injection.At;
11+
import org.spongepowered.asm.mixin.injection.Inject;
12+
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
13+
14+
@Mixin(ObjectModificationManager.class)
15+
@RequiresMod("blueprint")
16+
public abstract class ObjectModificationManagerMixin extends SimpleJsonResourceReloadListener {
17+
@Shadow protected SelectionSpace selectionSpace;
18+
19+
public ObjectModificationManagerMixin(Gson gson, String string) {
20+
super(gson, string);
21+
}
22+
23+
@Inject(method = "apply(Ljava/util/Map;Lnet/minecraft/server/packs/resources/ResourceManager;Lnet/minecraft/util/profiling/ProfilerFiller;)V", at = @At("RETURN"), remap = false)
24+
private void clearSelectionSpace(CallbackInfo ci) {
25+
this.selectionSpace = consumer -> {};
26+
}
27+
}

0 commit comments

Comments
 (0)