Avoid testing LinkData that does not belong to the same dimension #68
Reference in New Issue
Block a user
No description provided.
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is a quick hot-fix for not only the NPE spam, but also doors being eaten by rifts.
The problem in both cases is that the LinkData's dimID ("dimHelper.getWorld(link.locDimID)") and the current dimID ("mod_pocketDim.blockRift.isBlockImmune(world, link.locXCoord, link.locYCoord, link.locZCoord)") are mismatched, causing the checked block to by from another dimension, eating doors (not detected) and causing NPEs (the dimension of the LinkData has been unloaded, or similarly causing the LinkData pulled in the onBlockAdded method to be null)
This does not fix the actual problem of the mismatch, but should temporarily patch the issue until the mismatching of LinkData dimension IDs is resolved
Pull request closed