Skip to content

Commit

Permalink
Use faster check
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n committed Jan 10, 2025
1 parent 7fd388d commit 2032d12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

public void setupBlockModel(BakedModel p_386829_, RenderType p_387529_) {
+ // Neo: Guard against models using chunk render types.
+ if (RenderType.chunkBufferLayers().contains(p_387529_)) {
+ if (p_387529_.getChunkLayerId() != -1) {
+ throw new IllegalArgumentException("""
+ Attempting to render an item BakedModel with an invalid RenderType: %s.
+ Chunk render types are not supported, and the equivalent render types from the Sheets class should be used.
Expand Down

0 comments on commit 2032d12

Please sign in to comment.