修改集装箱jei适配写法

This commit is contained in:
17146 2025-02-23 03:52:59 +08:00
parent af6e2b3c1e
commit dad96db966

View file

@ -39,7 +39,7 @@ public class SbwJEIPlugin implements IModPlugin {
@Override
public void registerItemSubtypes(ISubtypeRegistration registration) {
registration.registerSubtypeInterpreter(ModItems.CONTAINER.get(), (ingredient, context) -> {
assert ingredient.getTag() != null;
if (ingredient.getTag() == null) return IIngredientSubtypeInterpreter.NONE;
return ingredient.getTag().getCompound("BlockEntityTag").getString("EntityType");
}
);