[Bug]: /rtp looks for locations twice #1493
Labels
1: Bug
Problem with the usage of a mod.
FTB Essentials
state: Fixed in Dev 🛠️
An issue is fixed in-dev and pending for release.
Mod
FTB Essentials
Mod version
2101.1.4
NeoForge / Forge / Fabric version
Neo 21.1.92
Modpack & version
No response
What issue are you having?
/rtp fires findBlockPos twice and displays the text twice due to WarmupCooldownTeleporter calling positionGetter#apply twice.
First time here: FTBTeam/FTB-Essentials:common/src/main/java/dev/ftb/mods/ftbessentials/util/WarmupCooldownTeleporter.java#L64
to check if it is in a dimension blacklist.
Then the second time when it actually teleports, here: FTBTeam/FTB-Essentials:common/src/main/java/dev/ftb/mods/ftbessentials/util/WarmupCooldownTeleporter.java#L95
This also means the dimension blacklist doesn't function for /rtp.
Crashlogs
No response
Steps to reproduce
Run the /rtp command
Wonder how this got through testing
Anything else to note?
No response
The text was updated successfully, but these errors were encountered: