Server crash fix, again
This commit is contained in:
parent
a843f69977
commit
43d4dd6adc
3 changed files with 11 additions and 3 deletions
|
@ -2,8 +2,17 @@ package ru.betterend.interfaces;
|
|||
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import ru.betterend.registry.EndItems;
|
||||
|
||||
public interface MultiModelItem {
|
||||
@Environment(EnvType.CLIENT)
|
||||
void registerModelPredicate();
|
||||
|
||||
static void register() {
|
||||
EndItems.getModItems().forEach(item -> {
|
||||
if (item instanceof MultiModelItem) {
|
||||
((MultiModelItem) item).registerModelPredicate();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue