Skip to content

Commit

Permalink
Fix game-crashing bug
Browse files Browse the repository at this point in the history
thx to ZekerZayard
  • Loading branch information
LNatit committed Mar 8, 2024
1 parent 6ec7a59 commit a00ec7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,10 @@ dependencies {
implementation fg.deobf("com.jozufozu.flywheel:flywheel-forge-1.20.1:0.6.10-7")
compileOnly fg.deobf("com.tterrag.registrate:Registrate:MC1.20-1.3.3")

implementation 'org.spongepowered:mixin:0.8.2'
// Love ❤️ from ZekerZayard
implementation 'org.spongepowered:mixin:0.8.5'
// Apply Mixin AP
annotationProcessor 'org.spongepowered:mixin:0.8.2:processor'
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
}

mixin {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@

@Mixin(SchematicAndQuillItem.class)
public class SchematicAndQuillItemMixin {
// Love ❤️ from ZekerZayard
@Redirect(
method = "lambda$replaceStructureVoidWithAir$0",
method = {"lambda$replaceStructureVoidWithAir$0"},
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/nbt/CompoundTag;putString(Ljava/lang/String;Ljava/lang/String;)V"
target = "Lnet/minecraft/nbt/CompoundTag;putString(Ljava/lang/String;Ljava/lang/String;)V",
remap = true
),
remap = false
)
Expand Down

0 comments on commit a00ec7c

Please sign in to comment.