Mekanism Crash On Launch
### Affected Product(s)

SpongeForge

### Version

spongeforge-1.16.5-36.2.5-8.0.0-RC1073-universal.jar

### Operating System

Windows

### Java Version

Adopt OpenJDK Hotspot 1.8.0_322

### Plugins/Mods

```shell
SpongeForge
Mekanism-1.16.5-10.1.1.456.jar (Latest)
```


### Describe the bug

When both Mekanism and SpongeForge are installed, Minecraft crashes on launch

[latest.log](https://github.com/mekanism/Mekanism/files/8066821/latest.log)
[debug.log](https://github.com/mekanism/Mekanism/files/8066822/debug.log)
[crash-2022-02-15_18.35.43-fml.txt](https://github.com/mekanism/Mekanism/files/8066824/crash-2022-02-15_18.35.43-fml.txt)

### Link to logs

_No response_
diff --git a/forge/src/mixins/java/org/spongepowered/forge/mixin/core/world/entity/item/ItemEntityMixin_Forge.java b/forge/src/mixins/java/org/spongepowered/forge/mixin/core/world/entity/item/ItemEntityMixin_Forge.java
index fb2b502d4..1ad9b4ed9 100644
--- a/forge/src/mixins/java/org/spongepowered/forge/mixin/core/world/entity/item/ItemEntityMixin_Forge.java
+++ b/forge/src/mixins/java/org/spongepowered/forge/mixin/core/world/entity/item/ItemEntityMixin_Forge.java
@@ -42,8 +42,11 @@ public abstract class ItemEntityMixin_Forge {
     // @formatter:on
 
     @Inject(method = "<init>(Lnet/minecraft/world/entity/EntityType;Lnet/minecraft/world/level/Level;)V", at = @At("RETURN"))
-    private void forge$setLifespanFromConfig(EntityType<? extends ItemEntity> type, Level level, CallbackInfo ci) {
-        if (!level.isClientSide) {
+    private void forge$setLifespanFromConfig(final EntityType<? extends ItemEntity> type, final Level level,
+        final CallbackInfo ci
+    ) {
+        // Check the level is not null to avoid an NPE
+        if (level != null && !level.isClientSide) {
             this.lifespan = SpongeGameConfigs.getForWorld(level).get().entity.item.despawnRate;
         }
     }
['forge/src/mixins/java/org/spongepowered/forge/mixin/core/world/entity/item/ItemEntityMixin_Forge.java']