mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 11:24:56 -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) {
|
||||
connection.events.fire(ContainerCloseEvent(connection, this))
|
||||
onClose()
|
||||
|
||||
val id = id ?: return
|
||||
@ -204,6 +203,8 @@ abstract class Container(
|
||||
connection.player.openedContainer = null
|
||||
connection.sendPacket(CloseContainerC2SP(id))
|
||||
}
|
||||
|
||||
connection.events.fire(ContainerCloseEvent(connection, this))
|
||||
}
|
||||
|
||||
protected open fun onClose() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user