Fabric API

Fabric API

111M Downloads

ModelLoadingEventDispatcher.BlockStateResolverContext#setModel() does not null-check the given blockstate

XFactHD opened this issue ยท 0 comments

commented

ModelLoadingEventDispatcher.BlockStateResolverContext#setModel() null-checks the given model a second time instead of null-checking the given blockstate:

public void setModel(BlockState state, GroupableModel model) {
Objects.requireNonNull(model, "state cannot be null");
Objects.requireNonNull(model, "model cannot be null");

FAPI version: 0.112.2+1.21.4