Prevent mixin error if Sophisticated Backpacks isn't installed

This commit is contained in:
embeddedt 2023-12-11 11:01:23 -05:00
parent b351febc82
commit a76c7f2505
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -2,6 +2,7 @@ package org.embeddedt.modernfix.forge.mixin.bugfix.unsafe_modded_shape_caches;
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;
@ -14,6 +15,7 @@ import java.util.Map;
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;