SmartBrainLib (Forge/Fabric/Quilt)

SmartBrainLib (Forge/Fabric/Quilt)

24M Downloads

[1.20.1-1.20.4] `SetRetaliateTarget` incorrectly checks null ally memory

dhyces opened this issue ยท 0 comments

commented

SBL version: 1.13
Minecraft version: 1.20.1

The last condition in this line is wrong https://github.com/Tslat/SmartBrainLib/blob/1.20.4/Common/src/main/java/net/tslat/smartbrainlib/api/core/behaviour/custom/target/SetRetaliateTarget.java#L38
It should be using the owner's memory, not the ally (who has not been hurt and does not have this memory).