File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
fabric-networking-api-v1/src/main/java/org/sinytra/fabric/networking_api Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11package org .sinytra .fabric .networking_api ;
22
33import net .fabricmc .fabric .api .networking .v1 .ServerConfigurationConnectionEvents ;
4- import net .fabricmc .loader .api .FabricLoader ;
54import net .minecraft .SharedConstants ;
65import net .minecraft .server .commands .DebugConfigCommand ;
76import net .minecraft .server .network .ServerConfigurationPacketListenerImpl ;
87import net .neoforged .bus .api .IEventBus ;
98import net .neoforged .fml .common .Mod ;
9+ import net .neoforged .fml .loading .FMLLoader ;
1010import net .neoforged .neoforge .common .NeoForge ;
1111import net .neoforged .neoforge .event .OnDatapackSyncEvent ;
1212import net .neoforged .neoforge .event .RegisterCommandsEvent ;
@@ -29,7 +29,7 @@ private static void registerCommands(RegisterCommandsEvent event) {
2929 return ;
3030 }
3131
32- if (FabricLoader . getInstance ().isDevelopmentEnvironment ()) {
32+ if (! FMLLoader . getCurrent ().isProduction ()) {
3333 // Only register this command in a dev env
3434 return ;
3535 }
Original file line number Diff line number Diff line change 11loom.platform =neoforge
22fabric.loom.dontRemap =true
33
4- implementationVersion =2.2.4
4+ implementationVersion =2.2.5
55
66versionMc =1.21.11
77versionMcCompat =1.21.11
You can’t perform that action at this time.
0 commit comments