Fix equipment slots being scrambled

This commit is contained in:
DBotThePony 2022-09-01 15:28:14 +07:00
parent 3a257f0976
commit cbb38c4122
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -100,7 +100,7 @@ abstract class MatteryMenu @JvmOverloads protected constructor(
open inner class EquipmentSlot(container: Container, index: Int, val type: net.minecraft.world.entity.EquipmentSlot, x: Int = 0, y: Int = 0) : InventorySlot(container, index, x, y) { open inner class EquipmentSlot(container: Container, index: Int, val type: net.minecraft.world.entity.EquipmentSlot, x: Int = 0, y: Int = 0) : InventorySlot(container, index, x, y) {
constructor(type: net.minecraft.world.entity.EquipmentSlot, x: Int = 0, y: Int = 0) : this( constructor(type: net.minecraft.world.entity.EquipmentSlot, x: Int = 0, y: Int = 0) : this(
inventory, 41 - type.ordinal, type, x, y inventory, 34 + type.ordinal, type, x, y
) )
override fun mayPlace(itemStack: ItemStack): Boolean { override fun mayPlace(itemStack: ItemStack): Boolean {