mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 03:15:35 -04:00
fix build
This commit is contained in:
parent
e1d2d75813
commit
e2a91512be
@ -36,7 +36,6 @@ import de.bixilon.minosoft.gui.rendering.util.vec.vec4.Vec4iUtil.right
|
||||
import de.bixilon.minosoft.modding.event.events.ChatMessageReceiveEvent
|
||||
import de.bixilon.minosoft.modding.event.events.ExperienceChangeEvent
|
||||
import de.bixilon.minosoft.modding.event.events.SelectHotbarSlotEvent
|
||||
import de.bixilon.minosoft.modding.event.events.container.ContainerRevisionChangeEvent
|
||||
import de.bixilon.minosoft.modding.event.invoker.CallbackEventInvoker
|
||||
import de.bixilon.minosoft.util.KUtil.toResourceLocation
|
||||
import glm_.vec2.Vec2i
|
||||
@ -173,14 +172,6 @@ class HotbarElement(guiRenderer: GUIRenderer) : Element(guiRenderer), LayoutedEl
|
||||
|
||||
connection.registerEvent(CallbackEventInvoker.of<SelectHotbarSlotEvent> { core.base.apply() })
|
||||
|
||||
connection.registerEvent(CallbackEventInvoker.of<ContainerRevisionChangeEvent> {
|
||||
if (it.container != connection.player.inventory) {
|
||||
return@of
|
||||
}
|
||||
core.base.apply()
|
||||
offhand.apply()
|
||||
})
|
||||
|
||||
connection.registerEvent(CallbackEventInvoker.of<ChatMessageReceiveEvent> {
|
||||
if (it.position != ChatTextPositions.ABOVE_HOTBAR) {
|
||||
return@of
|
||||
|
Loading…
x
Reference in New Issue
Block a user