Skip to content

Commit eedafd9

Browse files
committed
add FixMe's to HotbarManager and EnchantmentUtils
1 parent 9df5ac4 commit eedafd9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/kotlin/com/lambda/interaction/request/hotbar/HotbarManager.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import com.lambda.interaction.request.RequestHandler
2828
import com.lambda.interaction.request.hotbar.HotbarManager.checkResetSwap
2929
import com.lambda.threading.runSafe
3030

31+
//FixMe: as of 1.21.5, player.mainHandStack no longer points back to the serverSlot's stack
3132
object HotbarManager : RequestHandler<HotbarRequest>(
3233
1,
3334
TickEvent.Pre,

src/main/kotlin/com/lambda/util/EnchantmentUtils.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ object EnchantmentUtils {
4040
get() = !getOrDefault(DataComponentTypes.ENCHANTMENTS, ItemEnchantmentsComponent.DEFAULT).isEmpty
4141
|| getOrDefault(DataComponentTypes.STORED_ENCHANTMENTS, ItemEnchantmentsComponent.DEFAULT).isEmpty
4242

43+
//FixMe: doesn't work with, at least, efficiency on pickaxes
4344
/**
4445
* Returns the given enchantment level from a [net.minecraft.item.ItemStack]
4546
*/

0 commit comments

Comments
 (0)