Rats icon indicating copy to clipboard operation
Rats copied to clipboard

Add check for null owner

Open cylian914 opened this issue 6 months ago • 0 comments

In a normal context the check isn't needed as get entity will just return null but its needed for compatibility with the mod MCMT

MCMT replace the byUuid hasmap in net.minecraft.world.level.entity.EntityLookup by a ConcurrentHashMap so it can be access from multiple threads and this hashmap doesn't check if the key is null before trying to get the hashCode() causing a crash

cylian914 avatar Aug 09 '25 20:08 cylian914