diff --git a/src/main/java/net/mcreator/ui/modgui/ModElementGUI.java b/src/main/java/net/mcreator/ui/modgui/ModElementGUI.java index 9ec94b6d9de..8712c9fa2c2 100644 --- a/src/main/java/net/mcreator/ui/modgui/ModElementGUI.java +++ b/src/main/java/net/mcreator/ui/modgui/ModElementGUI.java @@ -608,8 +608,7 @@ protected void afterGeneratableElementGenerated() { } protected boolean allowCodePreview() { - return !modElement.getWorkspace().getGenerator().getModElementGeneratorTemplatesList(getElementFromGUI()) - .isEmpty(); + return true; } public void reloadDataLists() {