-
Notifications
You must be signed in to change notification settings - Fork 6
Compat with 1.21.4 #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| plugins { | ||
| id 'fabric-loom' version '1.7.2' | ||
| id 'fabric-loom' version '1.9.2' | ||
| } | ||
|
|
||
| group 'me.lunaluna.elytra-recast' | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| # Fabric | ||
| minecraft_version=1.21 | ||
| yarn_mappings=1.21+build.7 | ||
| loader_version=0.15.11 | ||
| minecraft_version=1.21.4 | ||
| yarn_mappings=1.21.4+build.8 | ||
| loader_version=0.16.10 | ||
| # Dependencies | ||
| mod_menu_version=11.0.1 | ||
| cloth_config_version=15.0.127 | ||
| mod_menu_version=13.0.2 | ||
| cloth_config_version=17.0.144 | ||
| # Libraries | ||
| gson_version=2.9.0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,16 +29,16 @@ private ClientPlayerEntity player() { | |
| private boolean awaitingElytra = false; | ||
|
|
||
| @SuppressWarnings("ConstantConditions") | ||
| @Inject(method = "tickFallFlying", at = @At("TAIL")) | ||
| @Inject(method = "tickMovement", at = @At("TAIL")) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The is a
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is fine, and was the way I was using previously |
||
| public void recastIfLanded(CallbackInfo ci) { | ||
| if (player() == null || !((Object) this instanceof ClientPlayerEntity)) | ||
| return; | ||
| boolean elytra = isFallFlying(); | ||
| boolean elytra = isGliding(); | ||
| if (awaitingElytra) { | ||
| if (elytra) | ||
| awaitingElytra = false; | ||
| } else if (!elytra && previousElytra) { | ||
| MinecraftClient.getInstance().getSoundManager().stopSounds(SoundEvents.ITEM_ELYTRA_FLYING.getId(), | ||
| MinecraftClient.getInstance().getSoundManager().stopSounds(SoundEvents.ITEM_ELYTRA_FLYING.id(), | ||
| SoundCategory.PLAYERS); | ||
| ElytraHelper.castElytra(player()); | ||
| awaitingElytra = ElytraHelper.checkElytra(player()); | ||
|
|
@@ -47,5 +47,5 @@ public void recastIfLanded(CallbackInfo ci) { | |
| } | ||
|
|
||
| @Shadow | ||
| public abstract boolean isFallFlying(); | ||
| public abstract boolean isGliding(); | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| # Gradle Memory | ||
| org.gradle.jvmargs=-Xmx1G | ||
| # Mod Properties | ||
| mod_version=2.5.1 | ||
| mod_version=2.6.0 | ||
| maven_group=me.lunaluna | ||
| archives_base_name=elytra-recast |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ElytraItemis gone I didn't try hard to find a replacement for theElytraItem.isUsablecall removing it seemed fine enough.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to merge this, though will add
LivingEntity.canGlideWith(itemStack, EquipmentSlot.CHEST)after, ensuring the elytra is usable is useful for stopping packets being sent trying to glide when elytra breaks.