ItemUseEvent doesn't allow for null player
KaptainWutax opened this issue ยท 1 comments
The ItemUseEvent doesn't respect the contract of UseOnContext/ItemUsageContext which marks the player as @ Nullable. Since the hook fires for all use events, it causes compatibility issues for mods that do pass null for the player when creating fake usage contexts. We ran into this problem with the ispawner mod.