Fix NPE in ModelRenderer

This commit is contained in:
Raven Szewczyk authored and Jason Mitchell committed 2023-08-23 16:39:00 -07:00
1 parent c7d721aa5c
commit 940037bc27
1 file changed
+1 -1
@@ -18,7 +18,7 @@ public class MixinModelRenderer implements IModelRenderer {
private int displayList;
public void resetDisplayList() {
if (!compiled) {
if (!compiled && displayList != 0) {
GLAllocation.deleteDisplayLists(displayList);
displayList = 0;
compiled = false;