mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-19 04:15:14 -04:00
fix container close packet sending
This commit is contained in:
parent
9c833c0599
commit
6f0618b1c6
@ -190,7 +190,6 @@ abstract class Container(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun close(force: Boolean = false) {
|
fun close(force: Boolean = false) {
|
||||||
connection.events.fire(ContainerCloseEvent(connection, this))
|
|
||||||
onClose()
|
onClose()
|
||||||
|
|
||||||
val id = id ?: return
|
val id = id ?: return
|
||||||
@ -204,6 +203,8 @@ abstract class Container(
|
|||||||
connection.player.openedContainer = null
|
connection.player.openedContainer = null
|
||||||
connection.sendPacket(CloseContainerC2SP(id))
|
connection.sendPacket(CloseContainerC2SP(id))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
connection.events.fire(ContainerCloseEvent(connection, this))
|
||||||
}
|
}
|
||||||
|
|
||||||
protected open fun onClose() {
|
protected open fun onClose() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user