Skip to content
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
wants to merge 41 commits into
base: main
Choose a base branch
from

Conversation

LeMayday
Copy link
Contributor

@LeMayday LeMayday commented Jun 9, 2024

  • improved code organization
    • created GCFueledVehicleEntity class
    • Rocket, Lander, and Buggy now inherit form appropriate classes
    • added / reorganized related interfaces a little
  • fixes / feats

LeMayday and others added 30 commits May 26, 2024 18:53
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
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant