Fixed an unintentional breakage with drill demon
This commit is contained in:
@@ -467,7 +467,7 @@ public final class InterfaceManager {
|
|||||||
close(new Component(Components.OPTIONS_261)); // Settings
|
close(new Component(Components.OPTIONS_261)); // Settings
|
||||||
close(new Component(Components.EMOTES_464)); // Emotes
|
close(new Component(Components.EMOTES_464)); // Emotes
|
||||||
close(new Component(Components.MUSIC_V3_187)); // Music
|
close(new Component(Components.MUSIC_V3_187)); // Music
|
||||||
close(new Component(Components.LOGOUT_182)); // Logout
|
//close(new Component(Components.LOGOUT_182)); // Logout
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -25,6 +25,9 @@ object DrillDemonUtils {
|
|||||||
fun teleport(player: Player){
|
fun teleport(player: Player){
|
||||||
player.setAttribute(DD_KEY_RETURN_LOC,player.location)
|
player.setAttribute(DD_KEY_RETURN_LOC,player.location)
|
||||||
player.properties.teleportLocation = Location.create(3163, 4819, 0)
|
player.properties.teleportLocation = Location.create(3163, 4819, 0)
|
||||||
|
player.interfaceManager.closeDefaultTabs()
|
||||||
|
player.packetDispatch.sendInterfaceConfig(548, 69, true)
|
||||||
|
player.packetDispatch.sendInterfaceConfig(746, 12, true)
|
||||||
|
|
||||||
ContentAPI.registerLogoutListener(player, "drilldemon"){p ->
|
ContentAPI.registerLogoutListener(player, "drilldemon"){p ->
|
||||||
ContentAPI.teleport(p, player.getAttribute(DD_KEY_RETURN_LOC, p.location))
|
ContentAPI.teleport(p, player.getAttribute(DD_KEY_RETURN_LOC, p.location))
|
||||||
@@ -82,6 +85,9 @@ object DrillDemonUtils {
|
|||||||
player.removeAttribute(DD_KEY_TASK)
|
player.removeAttribute(DD_KEY_TASK)
|
||||||
player.removeAttribute(DD_CORRECT_OFFSET)
|
player.removeAttribute(DD_CORRECT_OFFSET)
|
||||||
player.removeAttribute(DD_CORRECT_COUNTER)
|
player.removeAttribute(DD_CORRECT_COUNTER)
|
||||||
|
player.interfaceManager.openDefaultTabs()
|
||||||
|
player.packetDispatch.sendInterfaceConfig(548, 69, false)
|
||||||
|
player.packetDispatch.sendInterfaceConfig(746, 12, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun animationForTask(task: Int): Animation {
|
fun animationForTask(task: Int): Animation {
|
||||||
|
|||||||
Reference in New Issue
Block a user