diff options
author | nea <nea@nea.moe> | 2023-06-08 00:11:46 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-06-08 00:11:46 +0200 |
commit | f98a1f5d53792c026c3688fa89dea3e69910cb3a (patch) | |
tree | 873ee14abe51b1d229149c62f4958252026505fa /src/main/kotlin/moe/nea/firmament/features | |
parent | b65382a7b74836e13d8d9c9104971737288d1496 (diff) | |
download | firmament-f98a1f5d53792c026c3688fa89dea3e69910cb3a.tar.gz firmament-f98a1f5d53792c026c3688fa89dea3e69910cb3a.tar.bz2 firmament-f98a1f5d53792c026c3688fa89dea3e69910cb3a.zip |
Update to 1.20
- Remove some devenv mods that are not updated yet
- Replace lib39 with fletchingtable for automixins
- Use non kotlin entrypoints
- Make use of DrawContext in a bunch of places
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/features')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/features/inventory/SlotLocking.kt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/features/inventory/SlotLocking.kt b/src/main/kotlin/moe/nea/firmament/features/inventory/SlotLocking.kt index 27761ce..eab0da0 100644 --- a/src/main/kotlin/moe/nea/firmament/features/inventory/SlotLocking.kt +++ b/src/main/kotlin/moe/nea/firmament/features/inventory/SlotLocking.kt @@ -20,7 +20,7 @@ package moe.nea.firmament.features.inventory import kotlinx.serialization.Serializable import kotlinx.serialization.serializer -import net.minecraft.client.gui.DrawableHelper +import net.minecraft.client.gui.DrawContext import net.minecraft.entity.player.PlayerInventory import moe.nea.firmament.events.HandledScreenKeyPressedEvent import moe.nea.firmament.events.IsSlotProtectedEvent @@ -72,8 +72,7 @@ object SlotLocking : FirmamentFeature { } SlotRenderEvents.Before.subscribe { if (it.slot.inventory is PlayerInventory && it.slot.index in (lockedSlots ?: setOf())) { - DrawableHelper.fill( - it.matrices, + it.context.fill( it.slot.x, it.slot.y, it.slot.x + 16, |