Skip to content

Commit

Permalink
Update to 1.21 release and fix StructureBlockEntityMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaMode committed Jun 17, 2024
1 parent ccdef0c commit 2929dfb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ loom_version = 1.6.+
mod_version = 3.1.0-beta

# https://fabricmc.net/develop
minecraft_version = 1.21-pre2
minecraft_dependency = =1.21-pre2
minecraft_version = 1.21
minecraft_dependency = 1.21
loader_version = 0.15.11
fabric_version = 0.99.5+1.21
fabric_version = 0.100.2+1.21

# Mappings
# https://lambdaurora.dev/tools/import_quilt.html
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.github.fabricators_of_create.porting_lib.gametest.mixin;

import net.minecraft.core.HolderLookup;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Unique;
import org.spongepowered.asm.mixin.injection.At;
Expand Down Expand Up @@ -27,13 +29,13 @@ public String getQualifiedTestName() {
}

@Inject(method = "saveAdditional", at = @At("RETURN"))
private void saveQualifiedTestName(CompoundTag nbt, CallbackInfo ci) {
private void saveQualifiedTestName(CompoundTag nbt, HolderLookup.Provider provider, CallbackInfo ci) {
if (qualifiedTestName != null)
nbt.putString("PortingLib$ExtendedGameTestFunction", qualifiedTestName);
}

@Inject(method = "load", at = @At("RETURN"))
private void loadQualifiedTestName(CompoundTag nbt, CallbackInfo ci) {
@Inject(method = "loadAdditional", at = @At("RETURN"))
private void loadQualifiedTestName(CompoundTag nbt, HolderLookup.Provider provider, CallbackInfo ci) {
if (nbt.contains("PortingLib$ExtendedGameTestFunction", Tag.TAG_STRING))
this.qualifiedTestName = nbt.getString("PortingLib$ExtendedGameTestFunction");
}
Expand Down

0 comments on commit 2929dfb

Please sign in to comment.