Repository navigation
Main to next #1334
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
Open
s5bug
wants to merge
31
commits into
FallingColors:1.21
Choose a base branch
from
s5bug:main-to-next
base: 1.21
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
Main to next #1334
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
b8cb13b
chore(l10n): update Norwegian Bokmål translation
hexxy-weblate f2fd1b1
chore(l10n): update Chinese (Simplified Han script) translation
hexxy-weblate 7c7b1a0
chore(l10n): update translation files
hexxy-weblate b8552f7
chore(l10n): update translation files
hexxy-weblate 8fed46b
chore(l10n): update French translation
hexxy-weblate 1330ea8
chore(l10n): update translation files
hexxy-weblate 9467a9b
chore(l10n): update translations (#1280)
object-Object edba45d
Only check for enlightenment when drawing outside parens (#1290)
Robotgiggle 038ca4c
chore(l10n): update Norwegian Bokmål translation
hexxy-weblate 50c0b54
chore(l10n): update Japanese translation
hexxy-weblate 5b0b862
chore(l10n): update Chinese (Simplified Han script) translation
hexxy-weblate acf8ca8
chore(l10n): update Finnish translation
hexxy-weblate 695ec95
chore(l10n): update French translation
hexxy-weblate ee5c320
chore(l10n): update English (Pirate) translation
hexxy-weblate f684e93
chore(l10n): update Swedish translation
hexxy-weblate bb32244
chore(l10n): update Spanish translation
hexxy-weblate b1a0739
chore(l10n): update Polish translation
hexxy-weblate 81bb810
chore(l10n): update Russian translation
hexxy-weblate fbe014f
chore(l10n): update translations (#1286)
object-Object 78b5190
chore(l10n): update Norwegian Bokmål translation
hexxy-weblate 8ade6bc
chore(l10n): update Spanish translation
hexxy-weblate 53659f6
chore(l10n): update Polish translation
hexxy-weblate ef98502
chore(l10n): update Russian translation
hexxy-weblate 073bb14
chore(l10n): update translations (#1300)
object-Object ffa7c37
Make impulse cost calculation respect max magnitude (#1307)
beholderface 4db93ab
fix: retain velocity after teleportation (#1310)
drtheodor e49b3ad
Add media costs to EMI flay mind recipes (#1323)
MEEPofFaith 24f31a2
Tweak OpLightning implementation (#1304)
Robotgiggle 37c1b66
Prevent variable-cost spells being made free with very small inputs (…
Robotgiggle 6ebfa70
Allow anything with the right NBT to shift-scroll (#1329)
Robotgiggle c876428
Merge branch 'main' into main-to-next
s5bug 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,9 @@ | ||
| package at.petrak.hexcasting.common.msgs; | ||
|
|
||
| import at.petrak.hexcasting.api.HexAPI; | ||
| import at.petrak.hexcasting.api.casting.iota.IotaType; | ||
| import at.petrak.hexcasting.api.utils.NBTHelper; | ||
| import at.petrak.hexcasting.common.items.storage.ItemAbacus; | ||
| import at.petrak.hexcasting.common.items.storage.ItemSpellbook; | ||
| import at.petrak.hexcasting.common.lib.HexDataComponents; | ||
| import at.petrak.hexcasting.common.lib.HexItems; | ||
|
|
@@ -49,10 +52,10 @@ private void handleForHand(ServerPlayer sender, InteractionHand hand, double del | |
| if (delta != 0) { | ||
| var stack = sender.getItemInHand(hand); | ||
|
|
||
| if (stack.getItem() == HexItems.SPELLBOOK.get()) { | ||
| spellbook(sender, hand, stack, delta); | ||
| } else if (stack.getItem() == HexItems.ABACUS.get()) { | ||
| if (stack.getItem() == HexItems.ABACUS) { | ||
| abacus(sender, hand, stack, delta); | ||
| } else if (ItemSpellbook.supportsPageScrolling(stack)) { | ||
| spellbook(sender, hand, stack, delta); | ||
| } | ||
| } | ||
| } | ||
|
|
@@ -98,6 +101,12 @@ private void spellbook(ServerPlayer sender, InteractionHand hand, ItemStack stac | |
| } | ||
|
|
||
| private void abacus(ServerPlayer sender, InteractionHand hand, ItemStack stack, double delta) { | ||
| if (ItemSpellbook.supportsPageScrolling(stack)) { | ||
| HexAPI.LOGGER.warn("Item stack has spellbook tags but is an abacus! The spellbook tags will be removed."); | ||
|
Member
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 should be updated to refer to components rather than tags (and should maybe only remove SELECTED_SPELLBOOK_PAGE since that should be the only one checked for now) |
||
| stack.remove(HexDataComponents.SELECTED_SPELLBOOK_PAGE.get()); | ||
| stack.remove(HexDataComponents.SPELLBOOK_PAGE_NAMES.get()); | ||
| } | ||
|
|
||
| var increase = delta < 0; | ||
| Double num = stack.get(HexDataComponents.ABACUS_VALUE.get()); | ||
| if(num == null) | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
In 1.21, spellbooks don't have the page-names component by default anymore, only the page-index one, so as written this no longer allows scrolling on non-renamed spellbooks. You can probably just remove the
supportsPageScrollingmethod entirely and replace its usages with a direct check for the page-index component.Maybe also replace the
supportsPageScrollingdoc comment with a comment in HexDataComponents saying something similar, ie "applying this component will enable shift-scrolling, though it won't do much without the other components and a way to read/write the iota"