Replies: 1 comment
-
|
Resolved by #11013 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem?
1.20.6 already throws an exception when using
BODYfor entities that don't have it (672c077), butLivingEntity#canUseEquipmentSlotwas only added in 1.21 (which is still experimental).Describe the solution you'd like.
Would be nice if
LivingEntity#canUseEquipmentSlotcould be backported to 1.20.6, seeing as it throws for invalid slots but doesn't really have a way to check.Describe alternatives you've considered.
Could
try/catch, but that isn't as nice as a proper method & you can't really know where theIllegalArgumentExceptionis from without checking the message or something.Other
I know features aren't usually backported like this so I understand if you prefer not to, but imo this specific case makes sense seeing as it's still supported & already has checks to throw for invalid slots and all.
Beta Was this translation helpful? Give feedback.
All reactions