Skip to content

Commit

Permalink
Prevent mixin error if Sophisticated Backpacks isn't installed
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Dec 11, 2023
1 parent b351feb commit a76c7f2
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -2,6 +2,7 @@

import net.minecraft.world.phys.shapes.VoxelShape;
import net.p3pp3rf1y.sophisticatedbackpacks.backpack.BackpackShapes;
import org.embeddedt.modernfix.annotation.RequiresMod;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Mutable;
Expand All @@ -14,6 +15,7 @@
import java.util.concurrent.ConcurrentHashMap;

@Mixin(value = BackpackShapes.class, remap = false)
@RequiresMod("sophisticatedbackpacks")
public abstract class BackpackShapesMixin {
@Mutable @Shadow @Final private static Map<Integer, VoxelShape> SHAPES;

Expand Down

0 comments on commit a76c7f2

Please sign in to comment.