Skip to content

Commit 41c5ecf

Browse files
fix mixin to work with 1.21.6
1 parent 0e09676 commit 41c5ecf

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

modules/fabric-1.21.6/src/main/java/io/chaws/expandedenderchest/mixin/PlayerEntityMixin.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.mojang.authlib.GameProfile;
44
import org.spongepowered.asm.mixin.Mixin;
55
import org.spongepowered.asm.mixin.Shadow;
6+
import org.spongepowered.asm.mixin.Unique;
67
import org.spongepowered.asm.mixin.injection.At;
78
import org.spongepowered.asm.mixin.injection.Inject;
89
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@@ -11,23 +12,21 @@
1112
import net.minecraft.inventory.EnderChestInventory;
1213
import net.minecraft.item.ItemStack;
1314
import net.minecraft.util.collection.DefaultedList;
14-
import net.minecraft.util.math.BlockPos;
1515
import net.minecraft.world.World;
1616

1717
@Mixin(PlayerEntity.class)
1818
public abstract class PlayerEntityMixin {
19+
@Unique
1920
private static final int EXPANDED_ENDERCHEST_SIZE = 9 * 6;
2021

2122
@Shadow
2223
public abstract EnderChestInventory getEnderChestInventory();
2324

2425
@Inject(method = "<init>", at = @At(value = "RETURN"))
2526
private void expandEnderChest(
26-
final World world,
27-
final BlockPos pos,
28-
final float yaw,
29-
final GameProfile gameProfile,
30-
final CallbackInfo ci
27+
World world,
28+
GameProfile profile,
29+
CallbackInfo ci
3130
) {
3231
var accessor = (SimpleInventoryAccessor)getEnderChestInventory();
3332
accessor.setSize(EXPANDED_ENDERCHEST_SIZE);

0 commit comments

Comments
 (0)