-
Notifications
You must be signed in to change notification settings - Fork 84
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
Rocket refactoring + starting some features / fixes #331
Open
LeMayday
wants to merge
41
commits into
TeamGalacticraft:main
Choose a base branch
from
LeMayday:fix-rocket-bugs
base: main
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.
Conversation
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
Contributor
LeMayday
commented
Jun 9, 2024
•
edited
Loading
edited
- improved code organization
- created GCFueledVehicleEntity class
- Rocket, Lander, and Buggy now inherit form appropriate classes
- added / reorganized related interfaces a little
- fixes / feats
- rocket does not hang when exited ([Bug] Rocket Hangs When Exited Before Launch #322)
- projectiles bounce off all GCVehicles
- started working on rocket inventory
still need to drop item
combined with previous commit, this fixes TeamGalacticraft#324
player dismounts the rocket on the launch pad instead of above the rocket in the air. I made the dismount location one block south of the rocket (in the direction of the rocket window by default)
rewrote onPlace with helper functions to make it more readable. Should perform the same, but please report any bugs (note: bugs would arise from attempting to create a launchpad multiblock)
addresses issue TeamGalacticraft#323 and refactors onRemove code to be more readable
addresses changes requested by @marcus8448
rocket will launch without player if player exists and does not reenter / destroy rocket before countdown expires. Copies behavior from Galacticraft Legacy and fixes bug TeamGalacticraft#322
lander gets instantiated using information from the player, so the player needs to be teleported first before the lander can be created
…f GC vehicle types
also removed methods implemented by parent classes
a better organization of vehicles is based on which require fuel and which don't. Both types could be rideable, and if we were to use PlayerRideable as the parent class, then we would either have to reuse a lot of fuel-related code or make assumptions about other parent classes
…wable inventories I still assume that they will be containers, which I think is fair given that all GC vehicles I can think of store items in some way
turns out it did not enforce implementing those methods since they are already implemented in Entity
F is already used for off-hand swap
haven't got it quite working yet
Thanks for dealing with that stupid hangin' rocket bug! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.