Skip to content

Commit d5fc119

Browse files
committed
can't have nice things in minecraft modding
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
1 parent ba72967 commit d5fc119

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/kotlin/ru/octol1ttle/flightassistant/impl/computer/autoflight/FireworkComputer.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,12 @@ class FireworkComputer(computers: ComputerBus, private val mc: Minecraft) : Comp
9090
}
9191

9292
safeFireworkCount = 0
93-
for (stack: ItemStack in computers.data.player.inventory.items) {
93+
for (stack: ItemStack in
94+
//? if >=1.21.5 {
95+
/*computers.data.player.inventory.nonEquipmentItems
96+
*///?} else
97+
computers.data.player.inventory.items
98+
) {
9499
if (isFireworkAndSafe(stack)) {
95100
safeFireworkCount += stack.count
96101
}

0 commit comments

Comments
 (0)