mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-27 23:46:01 +00:00
Fix NPE in ModelRenderer
This commit is contained in:
1 parent
c7d721aa5c
commit
940037bc27
1 file changed
+1
-1
+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;
|
||||
|
||||
Reference in new issue
Block a user