Skip to content

Commit

Permalink
Fix render crash when breaking block
Browse files Browse the repository at this point in the history
  • Loading branch information
jaquadro committed Jul 19, 2022
1 parent 9bc4488 commit c3a97ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ minecraft_base_version=1.19
minecraft_version=1.19
forge_version=41.0.99
loader_version=41
mod_version=11.1.1
mod_version=11.1.2

# Mod dependency versions
jei_version=11.0.0.206
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public List<BakedQuad> getQuads (@Nullable BlockState state,
List<BakedQuad> mainQuads;
if (state != null) {
ChunkRenderTypeSet renderTypes = mainModel.getRenderTypes(state, rand, extraData);
if (renderTypes.contains(type)) {
if (type == null || renderTypes.contains(type)) {
mainQuads = mainModel.getQuads(state, side, rand, extraData, type);
} else {
mainQuads = Collections.emptyList();
Expand Down

0 comments on commit c3a97ba

Please sign in to comment.