-
Notifications
You must be signed in to change notification settings - Fork 4
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
Compat with 1.21.4 #20
Open
KealJones
wants to merge
2
commits into
InLieuOfLuna:master
Choose a base branch
from
KealJones:upgrade-1.21.4
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")) | ||
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 |
||
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(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
ElytraItem
is gone I didn't try hard to find a replacement for theElytraItem.isUsable
call removing it seemed fine enough.