Skip to content

Fix player factions check#17

Merged
wsor4035 merged 1 commit intomt-mods:masterfrom
Bituvo:factions
Jul 19, 2025
Merged

Fix player factions check#17
wsor4035 merged 1 commit intomt-mods:masterfrom
Bituvo:factions

Conversation

@Bituvo
Copy link
Contributor

@Bituvo Bituvo commented Jul 14, 2025

There was a problem with this line of code on Eden Lost. If a player is not in any factions, factions.get_player_factions returns false. This would lead to the code trying to use the # operator on a boolean value, causing a crash any time somebody right-clicked on a protector block.

This code was probably written for an older version of the factions mod.

Copy link

@wsor4035 wsor4035 left a comment

Choose a reason for hiding this comment

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

per server owners request and not looking obviously bad

@wsor4035 wsor4035 merged commit 3daca56 into mt-mods:master Jul 19, 2025
1 check passed
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.

2 participants