Fixed ring of the star sprite bypassing some teleport restrictions

This commit is contained in:
Player Name
2023-09-20 09:08:14 +00:00
committed by Ryan
parent 5e6f750cee
commit 7320bcfd0b
@@ -78,6 +78,11 @@ class ShootingStarPlugin : LoginListener, InteractionListener, TickListener, Com
else -> {_ -> true}
}
if(!condition.invoke(player)){
sendDialogue(player, "Magical forces prevent your teleportation.")
return@on true
}
val shouldWarn = when(star.location){
"North Edgeville mining site",
"Southern wilderness mine",