Iron's Spells 'n Spellbooks

Iron's Spells 'n Spellbooks

24M Downloads

[Bug] Cannot invoke "net.minecraft.world.level.Level.dimension()" because "net.minecraft.client.Minecraft.getInstance().player.level" is null

L8-Alphine opened this issue · 2 comments

commented

Observed behaviour

When creating a new world it crashes because the mod doesn't check for null checks and throws an error in 1.21.1 but 1.21.1 NeoForge nulls the player's world for about a tick or two.

Expected behaviour

Should be able to join a newly created world/server.

Steps to reproduce

  1. Install NeoForge 1.21.1 - 21.1.117
  2. Install the Mod + it's addons
  3. Create a New World in Singleplayer or Join a singleplayer world or modded server
  4. Error is either a crash or Invalid Player Data

Server Type

Single Player

Crashlog

https://gist.github.com/L8-Alphine/8d2b42ce8c84ecf1607fee1591b4556c

Iron's Spells N Spellbooks version

1.21.1-3.10.1

Forge version

NeoForge 1.21.1 - 21.1.117

Other mods

FULL MOD LIST:
letsdo-API-forge-1.3.0-beta-release-forge.jar |[Let's Do] API |doapi |1.3.0-beta-release |Manifest: NOSIGNATURE
accessories-neoforge-1.1.0-beta.16+1.21.1.jar |Accessories |accessories |1.1.0-beta.16+1.21.1|Manifest: NOSIGNATURE
aeroblender-1.21.1-1.0.0-neoforge.jar |AeroBlender |aeroblender |1.0.0 |Manifest: NOSIGNATURE
aether_ores-1.0.0-neoforge-1.21.1.jar |Aether: Basic Ores |aether_ores |1.0.0 |Manifest: NOSIGNATURE
alexs_simple_biomes-1.1.1-neoforge-1.21.1.jar |Alex's Simple Biomes |alexs_simple_biomes |1.1.0 |Manifest: NOSIGNATURE
alshanex_familiars-1.21.1_v1.1.2_HotFix.jar |Alshanex's Familiars Mod |alshanex_familiars |1.21.1_v1.1.2_HotFix|Manifest: NOSIGNATURE
amendments-1.21-1.2.24-neoforge.jar |Amendments |amendments |1.21-1.2.24 |Manifest: NOSIGNATURE
arcaneessenceblock-1.0.1-neoforge-1.21.1.jar |ArcaneEssenceBlock |arcaneessenceblock |1.0.0 |Manifest: NOSIGNATURE
architectury-13.0.8-neoforge.jar |Architectury |architectury |13.0.8 |Manifest: NOSIGNATURE
artifacts-neoforge-12.1.0.jar |Artifacts |artifacts |12.1.0 |Manifest: NOSIGNATURE
athena-neoforge-1.21-4.0.1.jar |Athena |athena |4.0.1 |Manifest: NOSIGNATURE
azurelib-neo-1.21.1-3.0.9.jar |AzureLib |azurelib |3.0.9 |Manifest: NOSIGNATURE
badpackets-neo-0.8.2.jar |Bad Packets |badpackets |0.8.2 |Manifest: NOSIGNATURE
balm-neoforge-1.21.1-21.0.33.jar |Balm |balm |21.0.33 |Manifest: NOSIGNATURE
BetterAdvancements-NeoForge-1.21.1-0.4.3.21.jar |Better Advancements |betteradvancements |0.4.3.21 |Manifest: NOSIGNATURE
betterarcheology-neoforge-1.3.1-1.21.jar |Better Archeology |betterarcheology |1.3.1 |Manifest: NOSIGNATURE
bettercombat-neoforge-2.1.3+1.21.1.jar |Better Combat |bettercombat |2.1.3+1.21.1 |Manifest: NOSIGNATURE
bookshelf-neoforge-1.21.1-21.1.50.jar |Bookshelf |bookshelf |21.1.50 |Manifest: NOSIGNATURE
cataclysm_spellbooks-1.1.5-1.21.jar |Cataclysm Spellbook |cataclysm_spellbooks |1.1.5-1.21 |Manifest: NOSIGNATURE
chipped-neoforge-1.21.1-4.0.2.jar |Chipped |chipped |4.0.2 |Manifest: NOSIGNATURE
cloth-config-15.0.140-neoforge.jar |Cloth Config v15 API |cloth_config |15.0.140 |Manifest: NOSIGNATURE
Clumps-neoforge-1.21.1-19.0.0.1.jar |Clumps |clumps |19.0.0.1 |Manifest: NOSIGNATURE
collective-1.21.1-7.94.jar |Collective |collective |7.94 |Manifest: NOSIGNATURE
colorfulhearts-neoforge-1.21.1-10.3.8.jar |Colorful Hearts |colorfulhearts |10.3.8 |Manifest: NOSIGNATURE
crabbersdelight-1.21.1-1.1.7a.jar |Crabber's Delight |crabbersdelight |1.1.7a |Manifest: NOSIGNATURE
craftingtweaks-neoforge-1.21.1-21.1.5.jar |Crafting Tweaks |craftingtweaks |21.1.5 |Manifest: NOSIGNATURE
cratedelight-24.11.22-1.21-neoforge.jar |Crate Delight |cratedelight |24.11.22-1.21-neofor|Manifest: NOSIGNATURE
crystal_chronicles-0.0.5-alpha.jar |CrystalChronicles |crystal_chronicles |0.0.5-alpha |Manifest: NOSIGNATURE
cumulus_menus-1.21.1-2.0.3-neoforge.jar |Cumulus |cumulus_menus |2.0.3 |Manifest: NOSIGNATURE
curios-neoforge-9.3.1+1.21.1.jar |Curios API |curios |9.3.1+1.21.1 |Manifest: NOSIGNATURE
decorativelattices 1.21.1 - 1.0 NeoForge.jar |Decorative lattices |decorativelattices |1.0 |Manifest: NOSIGNATURE
decorativepaths 1.21.1 - v1.1 - NeoForge.jar |Decorative paths |decorativepaths |1.0 |Manifest: NOSIGNATURE
decorativerailings 1.21.1 - v1.0 - NeoForge.jar |Decorative railings |decorativerailings |1.0 |Manifest: NOSIGNATURE
decorativewoodenlattices 1.21.1 - v1.0 - NeoForge.|Decorative wooden lattices |decorativewoodenlattices |1.0.0 |Manifest: NOSIGNATURE
deep_aether-1.21.1-1.1.2.jar |Deep Aether |deep_aether |1.1.2 |Manifest: NOSIGNATURE
deeperdarker-neoforge-1.21-1.3.4.jar |Deeper and Darker |deeperdarker |1.3.4 |Manifest: NOSIGNATURE
dungeons-and-taverns-v4.4.4.jar |Dungeons and Taverns |mr_dungeons_andtaverns |1-v4.4.4 |Manifest: NOSIGNATURE
dungeons-and-taverns-end-castle-standalone-v1.1.ja|Dungeons and Taverns End Castl|mr_dungeons_andtavernsendcastl|1-v1.1 |Manifest: NOSIGNATURE
dungeons-and-taverns-stronghold-overhaul-v2.1.f.ja|Dungeons and Taverns Stronghol|mr_dungeons_andtavernsstrongho|1-v2.1.f |Manifest: NOSIGNATURE
dungeons-and-taverns-woodland-mansion-replacement-|Dungeons and Taverns Woodland |mr_dungeons_andtavernswoodland|1-v1.2 |Manifest: NOSIGNATURE
ends_delight-2.5.1+neoforge.1.21.1.jar |End's Delight |ends_delight |2.5.1+neoforge.1.21.|Manifest: NOSIGNATURE
endermanoverhaul-neoforge-1.21.1-2.0.2.jar |Enderman Overhaul |endermanoverhaul |2.0.2 |Manifest: NOSIGNATURE
everycomp-1.21-2.9.6-neoforge.jar |Every Compat |everycomp |1.21-2.9.6 |Manifest: NOSIGNATURE
expandability-neoforge-12.0.0.jar |ExpandAbility |expandability |12.0.0 |Manifest: NOSIGNATURE
expandeddelight-0.1.3.1.jar |Expanded Delight |expandeddelight |0.1.3.1 |Manifest: NOSIGNATURE
FarmersDelight-1.21.1-1.2.7.jar |Farmer's Delight |farmersdelight |1.2.7 |Manifest: NOSIGNATURE
forgeconfigapiport-neoforge-21.1.0.jar |Forge Config API Port |forgeconfigapiport |21.1.0 |Manifest: NOSIGNATURE
fabric-api-base-0.4.42+d1308dedd1.jar |Forgified Fabric API Base |fabric_api_base |0.4.42+d1308dedd1 |Manifest: NOSIGNATURE
fabric-block-view-api-v2-1.0.10+9afaaf8c19.jar |Forgified Fabric BlockView API|fabric_block_view_api_v2 |1.0.10+9afaaf8c19 |Manifest: NOSIGNATURE
fabric-networking-api-v1-4.2.2+a92978fd19.jar |Forgified Fabric Networking AP|fabric_networking_api_v1 |4.2.2+a92978fd19 |Manifest: NOSIGNATURE
fabric-renderer-api-v1-3.4.0+acb05a3919.jar |Forgified Fabric Renderer API |fabric_renderer_api_v1 |3.4.0+acb05a3919 |Manifest: NOSIGNATURE
fabric-rendering-data-attachment-v1-0.3.48+73761d2|Forgified Fabric Rendering Dat|fabric_rendering_data_attachme|0.3.48+73761d2e19 |Manifest: NOSIGNATURE
fabric-screen-api-v1-2.0.24+79a4c2b0d1.jar |Forgified Fabric Screen API (v|fabric_screen_api_v1 |2.0.24+79a4c2b0d1 |Manifest: NOSIGNATURE
fusion-1.2.5-neoforge-mc1.21.jar |Fusion |fusion |1.2.5 |Manifest: NOSIGNATURE
geckolib-neoforge-1.21.1-4.7.5.1.jar |GeckoLib 4 |geckolib |4.7.5.1 |Manifest: NOSIGNATURE
guardvillagers-2.3.2-1.21.1.jar |Guard Villagers |guardvillagers |2.3.2 |Manifest: NOSIGNATURE
immersive_aircraft-1.2.2+1.21.1-neoforge.jar |Immersive Aircraft |immersive_aircraft |1.2.2+1.21.1 |Manifest: NOSIGNATURE
Incendium_1.21.x_v5.4.4.jar |Incendium |incendium |5.4.3 |Manifest: NOSIGNATURE
iris-neoforge-1.8.8+mc1.21.1.jar |Iris |iris |1.8.8+mc1.21.1 |Manifest: NOSIGNATURE
irons_spellbooks-1.21.1-3.10.1.jar |Iron's Spells 'n Spellbooks |irons_spellbooks |1.21.1-3.10.1 |Manifest: NOSIGNATURE
Jade-1.21.1-NeoForge-15.10.0.jar |Jade |jade |15.10.0+neoforge |Manifest: NOSIGNATURE
JadeAddons-1.21.1-NeoForge-6.1.0.jar |Jade Addons |jadeaddons |6.1.0+neoforge |Manifest: NOSIGNATURE
justenoughbreeding-neoforge-1.21-1.21.1-1.5.0.jar |Just Enough Breeding |justenoughbreeding |1.5.0 |Manifest: NOSIGNATURE
jei-1.21.1-neoforge-19.21.0.247.jar |Just Enough Items |jei |19.21.0.247 |Manifest: NOSIGNATURE
JustEnoughProfessions-neoforge-1.21.1-4.0.4.jar |Just Enough Professions (JEP) |justenoughprofessions |4.0.4 |Manifest: NOSIGNATURE
JustEnoughResources-NeoForge-1.21.1-1.6.0.13.jar |Just Enough Resources |jeresources |1.6.0.13 |Manifest: NOSIGNATURE
kuma-api-neoforge-21.0.4+1.21.jar |KumaAPI |kuma_api |21.0.4 |Manifest: NOSIGNATURE
L_Ender's Cataclysm-2.60-1.21.1.jar |L_Ender's Cataclysm |cataclysm |2.60-1.21.1 |Manifest: NOSIGNATURE
LeavesBeGone-v21.1.0-1.21.1-NeoForge.jar |Leaves Be Gone |leavesbegone |21.1.0 |Manifest: NOSIGNATURE
lionfishapi-2.6.jar |lionfishapi |lionfishapi |2.6 |Manifest: NOSIGNATURE
lithium-neoforge-0.15.0+mc1.21.1.jar |Lithium |lithium |0.15.0+mc1.21.1 |Manifest: NOSIGNATURE
lootr-neoforge-1.21-1.10.35.90.jar |Lootr |lootr |1.21-1.10.35.90 |Manifest: NOSIGNATURE
mcw-bridges-3.0.0-mc1.21.1neoforge.jar |Macaw's Bridges |mcwbridges |3.0.0 |Manifest: NOSIGNATURE
mcw-fences-1.1.2-mc1.21.1neoforge.jar |Macaw's Fences and Walls |mcwfences |1.1.2 |Manifest: NOSIGNATURE
mcw-furniture-3.3.0-mc1.21.1neoforge.jar |Macaw's Furniture |mcwfurnitures |3.3.0 |Manifest: NOSIGNATURE
mcw-lights-1.1.1-mc1.21.1neoforge.jar |Macaw's Lights and Lamps |mcwlights |1.1.1 |Manifest: NOSIGNATURE
mcw-paths-1.1.0neoforge-mc1.21.1.jar |Macaw's Paths and Pavings |mcwpaths |1.1.0 |Manifest: NOSIGNATURE
mcw-roofs-2.3.1-mc1.21.1neoforge.jar |Macaw's Roofs |mcwroofs |2.3.1 |Manifest: NOSIGNATURE
mcw-windows-2.3.0-mc1.21.1neoforge.jar |Macaw's Windows |mcwwindows |2.3.2 |Manifest: NOSIGNATURE
midnightlib-1.6.3-neoforge.jar |MidnightLib |midnightlib |1.6.3 |Manifest: NOSIGNATURE
client-1.21.1-20240808.144430-srg.jar |Minecraft |minecraft |1.21.1 |Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f
dungeons_1.18_mc1.21.1.jar |Minecraft Dungeons |duneons |1.18 |Manifest: NOSIGNATURE
modonomicon-1.21.1-neoforge-1.114.0.jar |Modonomicon |modonomicon |1.114.0 |Manifest: NOSIGNATURE
mvs-4.2.8-1.21.jar |Moog's Voyager Structures |mvs |4.2.8-1.21 |Manifest: NOSIGNATURE
moonlight-1.21-2.17.37-neoforge.jar |Moonlight Lib |moonlight |1.21-2.17.37 |Manifest: NOSIGNATURE
moredelight-25.01.13a-1.21-neoforge.jar |More Delight |moredelight |25.01.13a-1.21-neofo|Manifest: NOSIGNATURE
mcd-artifacts-2.4.4-neoforge-1.21.1.jar |More Stuff |more_stuff |1.0.0 |Manifest: NOSIGNATURE
NaturesCompass-1.21.1-3.0.3-neoforge.jar |Nature's Compass |naturescompass |1.21.1-3.0.2-neoforg|Manifest: NOSIGNATURE
neoenchant-5.9.3.jar |Neo Enchant+ |mr_neoenchant |5.9.3 |Manifest: NOSIGNATURE
neoforge-21.1.117-universal.jar |NeoForge |neoforge |21.1.117 |Manifest: NOSIGNATURE
nitrogen_internals-1.21.1-1.1.22-neoforge.jar |Nitrogen |nitrogen_internals |1.1.22 |Manifest: NOSIGNATURE
Nullscape_1.21.x_v1.2.10.jar |Nullscape |nullscape |1.2.10 |Manifest: NOSIGNATURE
occultism-1.21.1-neoforge-1.177.1.jar |Occultism |occultism |1.177.1 |Manifest: NOSIGNATURE
OctoLib-NEOFORGE-0.5.0.1.jar |OctoLib |octolib |0.5.0.1 |Manifest: NOSIGNATURE
owo-lib-neoforge-0.12.15.1-beta.2+1.21.jar |oωo |owo |0.12.15.1-beta.2+1.2|Manifest: NOSIGNATURE
player-animation-lib-forge-2.0.1+1.21.1.jar |Player Animator |playeranimator |2.0.1+1.21.1 |Manifest: NOSIGNATURE
prickle-neoforge-1.21.1-21.1.6.jar |PrickleMC |prickle |21.1.6 |Manifest: NOSIGNATURE
PuzzlesLib-v21.1.33-1.21.1-NeoForge.jar |Puzzles Lib |puzzleslib |21.1.33 |Manifest: NOSIGNATURE
rarcompat-1.21-0.9.5.jar |RAR-Compat |rarcompat |0.9.5 |Manifest: NOSIGNATURE
rechiseled-1.1.6a-neoforge-mc1.21.jar |Rechiseled |rechiseled |1.1.6+a |Manifest: NOSIGNATURE
rechiseled_chipped-1.2.jar |Rechiseled: Chipped |rechiseled_chipped |1.2 |Manifest: NOSIGNATURE
relics-1.21.1-0.10.7.2.jar |Relics |relics |0.10.7.2 |Manifest: NOSIGNATURE
resourcefullib-neoforge-1.21-3.0.11.jar |Resourceful Lib |resourcefullib |3.0.11 |Manifest: NOSIGNATURE
resourcefulconfig-neoforge-1.21-3.0.10.jar |Resourcefulconfig |resourcefulconfig |3.0.10 |Manifest: NOSIGNATURE
voicechat-neoforge-1.21.1-2.5.28.jar |Simple Voice Chat |voicechat |1.21.1-2.5.28 |Manifest: NOSIGNATURE
slidingdoors 1.21.1 - v1.1 - NeoForge.jar |Sliding Doors |slidingdoors |1.0 |Manifest: NOSIGNATURE
smallships-neoforge-1.21.1-2.0.0-b2.1.jar |Small Ships |smallships |2.0.0-b2.1 |Manifest: NOSIGNATURE
SmartBrainLib-neoforge-1.21.1-1.16.7.jar |SmartBrainLib |smartbrainlib |1.16.7 |Manifest: NOSIGNATURE
sodium-neoforge-0.6.9+mc1.21.1.jar |Sodium |sodium |0.6.9+mc1.21.1 |Manifest: NOSIGNATURE
sophisticatedbackpacks-1.21.1-3.24.1.1212.jar |Sophisticated Backpacks |sophisticatedbackpacks |3.24.1 |Manifest: NOSIGNATURE
sophisticatedcore-1.21.1-1.3.3.903.jar |Sophisticated Core |sophisticatedcore |1.3.3 |Manifest: NOSIGNATURE
storagedelight-25.03.09-1.21-neoforge.jar |Storage Delight |storagedelight |25.03.09-1.21-neofor|Manifest: NOSIGNATURE
supermartijn642configlib-1.1.8-neoforge-mc1.21.jar|SuperMartijn642's Config Libra|supermartijn642configlib |1.1.8 |Manifest: NOSIGNATURE
supermartijn642corelib-1.1.18a-neoforge-mc1.21.jar|SuperMartijn642's Core Lib |supermartijn642corelib |1.1.18+a |Manifest: NOSIGNATURE
supplementaries-1.21-3.0.43-beta-neoforge.jar |Supplementaries |supplementaries |1.21-3.0.43-beta |Manifest: NOSIGNATURE
suppsquared-1.21-1.2.5-neoforge.jar |Supplementaries Squared |suppsquared |1.21-1.2.5 |Manifest: NOSIGNATURE
TerraBlender-neoforge-1.21.1-4.1.0.8.jar |TerraBlender |terrablender |4.1.0.8 |Manifest: NOSIGNATURE
Terralith_1.21.x_v2.5.8.jar |Terralith |terralith |2.5.8 |Manifest: NOSIGNATURE
aether-1.21.1-1.5.6-neoforge.jar |The Aether |aether |1.5.6 |Manifest: NOSIGNATURE
tipsmod-neoforge-1.21.1-21.1.2.jar |Tips |tipsmod |21.1.2 |Manifest: NOSIGNATURE
tipsylib-neoforge-1.21-3.1.1.jar |TipsyLib |tipsylib |3.1.1 |Manifest: NOSIGNATURE
toms_storage-1.21-2.1.1.jar |Tom's Simple Storage Mod |toms_storage |2.1.1 |Manifest: NOSIGNATURE
toms_trading_network-1.21-0.3.2.jar |Tom's Trading Network |toms_trading_network |0.3.2 |Manifest: NOSIGNATURE
ubesdelight-neoforge-1.21.1-0.4.0.jar |Ube's Delight |ubesdelight |0.4.0 |Manifest: NOSIGNATURE
villagernames-1.21.1-8.2.jar |Villager Names |villagernames |8.2 |Manifest: NOSIGNATURE
waystones-neoforge-1.21.1-21.1.13.jar |Waystones |waystones |21.1.13 |Manifest: NOSIGNATURE
DungeonsArise-1.21.x-2.1.64-release.jar |When Dungeons Arise |dungeons_arise |2.1.64 |Manifest: NOSIGNATURE
yggdrasil-structure-4.1.0.jar |Yggdrasil |mr_yggdrasil_structure |4.1.0 |Manifest: NOSIGNATURE
YungsApi-1.21.1-NeoForge-5.1.4.jar |YUNG's API |yungsapi |1.21.1-NeoForge-5.1.|Manifest: NOSIGNATURE
YungsBetterDungeons-1.21.1-NeoForge-5.1.4.jar |YUNG's Better Dungeons |betterdungeons |1.21.1-NeoForge-5.1.|Manifest: NOSIGNATURE
YungsBetterJungleTemples-1.21.1-NeoForge-3.1.2.jar|YUNG's Better Jungle Temples |betterjungletemples |1.21.1-NeoForge-3.1.|Manifest: NOSIGNATURE
YungsBetterMineshafts-1.21.1-NeoForge-5.1.1.jar |YUNG's Better Mineshafts |bettermineshafts |1.21.1-NeoForge-5.1.|Manifest: NOSIGNATURE
YungsBetterNetherFortresses-1.21.1-NeoForge-3.1.4.|YUNG's Better Nether Fortresse|betterfortresses |1.21.1-NeoForge-3.1.|Manifest: NOSIGNATURE
YungsBetterOceanMonuments-1.21.1-NeoForge-4.1.2.ja|YUNG's Better Ocean Monuments |betteroceanmonuments |1.21.1-NeoForge-4.1.|Manifest: NOSIGNATURE
YungsBetterWitchHuts-1.21.1-NeoForge-4.1.1.jar |YUNG's Better Witch Huts |betterwitchhuts |1.21.1-NeoForge-4.1.|Manifest: NOSIGNATURE
YungsBridges-1.21.1-NeoForge-5.1.1.jar |YUNG's Bridges |yungsbridges |1.21.1-NeoForge-5.1.|Manifest: NOSIGNATURE

Crashlog Check

  • I understand if this is a crashbug and I did not attach a crashlog, this will not be handled
commented

We actually do check for null on the player, Level is a nonnull field. this is likely a connector issue and is therefore not supported

commented

Update: After I removed all Irons spells n spellbooks I was able to join the world/server without any issues.