We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b754fe + 7aeacd6 commit 03e39d2Copy full SHA for 03e39d2
src/main/java/net/himeki/mcmtfabric/MCMT.java
@@ -91,7 +91,7 @@ public void onInitialize() {
91
LOGGER.info("Initializing MCMTFabric...");
92
93
// Register debug blocks and entities based on environment variable
94
- if (System.getProperty("MCMT_ENABLE_DEBUG").equals("true")) {
+ if (Objects.requireNonNullElse(System.getProperty("MCMT_ENABLE_DEBUG"), "").equals("true")) {
95
registerDebugBlocks();
96
registerDebugEntities();
97
} else {
@@ -130,4 +130,4 @@ public void onInitialize() {
130
131
LOGGER.info("MCMT Initialized");
132
}
133
-}
+}
0 commit comments