Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Commit 38852df

Browse files
committed
Prevent crash
1 parent 35b17a7 commit 38852df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/fartenware/FartenWare.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import java.lang.invoke.MethodHandles;
2525

2626
public class FartenWare extends MeteorAddon {
27-
static ModMetadata metadata = FabricLoader.getInstance().getModContainer("fartenware").get().getMetadata();
27+
static ModMetadata metadata = FabricLoader.getInstance().getModContainer("fartenware").orElseThrow(() -> new RuntimeException("FartenWare mod container not found!")).getMetadata();
2828
public static String VERSION = metadata.getVersion().toString();
2929
public static final Logger LOG = LoggerFactory.getLogger("FartenWare");
3030
public static final Category MAIN = new Category("FartenWare", Items.SPYGLASS.getDefaultStack());

0 commit comments

Comments
 (0)