Species

Species

887k Downloads

Incompatibility with 'Spectrum' Mod

Closed this issue · 0 comments

commented

The issue appears to be a NullPointerException occurring when trying to get the step height attribute for an entity. The error originates from an interaction between the Species mod (version 3.2) and the Step Height Entity Attribute mod (version 1.2.0).

Step Height Entity Attribute are part of the mod Spectrum

The crash occurs when ticking a "Deflector Dummy" entity from the Species mod

The error happens because the Step Height Entity Attribute mod is trying to access an attribute that doesn't exist (returns null)

The specific error is: Cannot invoke "net.minecraft.world.entity.ai.attributes.AttributeInstance.m_22135_()" because the return value of "net.minecraft.world.entity.LivingEntity.m_21051_(net.minecraft.world.entity.ai.attributes.Attribute)" is null

Could we modify the code of the DeflectorDummy entity to ensure it correctly registers the step height property?