The Witness: Switch to world.player_name (#3693)

* lint

* player_name

* oops lmao

* shorten
This commit is contained in:
NewSoupVi
2024-08-24 02:08:46 +02:00
committed by GitHub
parent e61d521ba8
commit 35c9061c9c
3 changed files with 14 additions and 17 deletions

View File

@@ -774,8 +774,7 @@ class WitnessPlayerLogic:
# If we are disabling a laser, something has gone wrong.
if static_witness_logic.ENTITIES_BY_HEX[entity]["entityType"] == "Laser":
laser_name = static_witness_logic.ENTITIES_BY_HEX[entity]["checkName"]
player_name = world.multiworld.get_player_name(world.player)
raise RuntimeError(f"Somehow, {laser_name} was disabled for player {player_name}."
raise RuntimeError(f"Somehow, {laser_name} was disabled for player {world.player_name}."
f" This is not allowed to happen, please report to Violet.")
newly_discovered_disabled_entities.add(entity)