修改集装箱jei适配写法
This commit is contained in:
parent
af6e2b3c1e
commit
dad96db966
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ public class SbwJEIPlugin implements IModPlugin {
|
||||||
@Override
|
@Override
|
||||||
public void registerItemSubtypes(ISubtypeRegistration registration) {
|
public void registerItemSubtypes(ISubtypeRegistration registration) {
|
||||||
registration.registerSubtypeInterpreter(ModItems.CONTAINER.get(), (ingredient, context) -> {
|
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");
|
return ingredient.getTag().getCompound("BlockEntityTag").getString("EntityType");
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue