Skip to content

Conversation

@Macaddict42
Copy link

No description provided.

var objectMagicProperties = entity.GetComponent<ObjectMagicProperties>();

var mods = objectMagicProperties.Mods;
var mods = objectMagicProperties?.Mods;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Encountered a null reference exception here where the HasComponent check returned true, but by the time it got to Entity.GetComponent, it was false.

{
Content =
[
new TextNode("Metadata/Shrines/Shrine")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the Show() function checks for the entity being in AlwaysShownIngameIcons, need to add this for shrines to be shown.

DeltaInWorldToMinimapDelta(iconGridPos - playerPos,
(playerHeight + GameController.IngameState.Data.GetTerrainHeightAt(iconGridPos)) * PoeMapExtension.WorldToGridConversion);

if (Settings.DrawShrineNames && icon.Entity.Type == EntityType.Shrine && !string.IsNullOrEmpty(icon.Entity.RenderName))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this after the Show() check but before the HasIngameIcon check so that we can add text to the existing ingame icon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant