Fixed ring of the star sprite bypassing some teleport restrictions
This commit is contained in:
@@ -78,6 +78,11 @@ class ShootingStarPlugin : LoginListener, InteractionListener, TickListener, Com
|
|||||||
else -> {_ -> true}
|
else -> {_ -> true}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!condition.invoke(player)){
|
||||||
|
sendDialogue(player, "Magical forces prevent your teleportation.")
|
||||||
|
return@on true
|
||||||
|
}
|
||||||
|
|
||||||
val shouldWarn = when(star.location){
|
val shouldWarn = when(star.location){
|
||||||
"North Edgeville mining site",
|
"North Edgeville mining site",
|
||||||
"Southern wilderness mine",
|
"Southern wilderness mine",
|
||||||
|
|||||||
Reference in New Issue
Block a user