-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aa6ff05
commit 858eb74
Showing
1 changed file
with
30 additions
and
30 deletions.
There are no files selected for viewing
60 changes: 30 additions & 30 deletions
60
src/main/java/net/wurstclient/zoom/WiZoomInitializer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
/* | ||
* Copyright (c) 2019-2023 Wurst-Imperium and contributors. | ||
* | ||
* This source code is subject to the terms of the GNU General Public | ||
* License, version 3. If a copy of the GPL was not distributed with this | ||
* file, You can obtain one at: https://www.gnu.org/licenses/gpl-3.0.txt | ||
*/ | ||
package net.wurstclient.zoom; | ||
|
||
import net.fabricmc.api.ModInitializer; | ||
|
||
public final class WiZoomInitializer implements ModInitializer | ||
{ | ||
private static boolean initialized; | ||
|
||
@Override | ||
public void onInitialize() | ||
{ | ||
// This code runs as soon as Minecraft is in a mod-load-ready state. | ||
// However, some things (like resources) may still be uninitialized. | ||
// Proceed with mild caution. | ||
|
||
if(initialized) | ||
throw new RuntimeException( | ||
"WiZoomInitializer.onInitialize() ran twice!"); | ||
|
||
WiZoom.INSTANCE.initialize(); | ||
initialized = true; | ||
} | ||
} | ||
/* | ||
* Copyright (c) 2019-2023 Wurst-Imperium and contributors. | ||
* | ||
* This source code is subject to the terms of the GNU General Public | ||
* License, version 3. If a copy of the GPL was not distributed with this | ||
* file, You can obtain one at: https://www.gnu.org/licenses/gpl-3.0.txt | ||
*/ | ||
package net.wurstclient.zoom; | ||
|
||
import net.fabricmc.api.ModInitializer; | ||
|
||
public final class WiZoomInitializer implements ModInitializer | ||
{ | ||
private static boolean initialized; | ||
|
||
@Override | ||
public void onInitialize() | ||
{ | ||
// This code runs as soon as Minecraft is in a mod-load-ready state. | ||
// However, some things (like resources) may still be uninitialized. | ||
// Proceed with mild caution. | ||
|
||
if(initialized) | ||
throw new RuntimeException( | ||
"WiZoomInitializer.onInitialize() ran twice!"); | ||
|
||
WiZoom.INSTANCE.initialize(); | ||
initialized = true; | ||
} | ||
} |