Skip to content

Commit

Permalink
allowCodePreview true by default
Browse files Browse the repository at this point in the history
  • Loading branch information
KlemenDEV committed Jan 2, 2024
1 parent b64b94a commit 45a67da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/net/mcreator/ui/modgui/ModElementGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,7 @@ protected void afterGeneratableElementGenerated() {
}

protected boolean allowCodePreview() {
return !modElement.getWorkspace().getGenerator().getModElementGeneratorTemplatesList(getElementFromGUI())
.isEmpty();
return true;
}

public void reloadDataLists() {
Expand Down

0 comments on commit 45a67da

Please sign in to comment.