Skip to content

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
@TheMCSpacePro
Copy link

Thanks for dealing with that stupid hangin' rocket bug!

@@ -0,0 +1,22 @@
package dev.galacticraft.api.rocket.entity;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to add the license header at the top of each file.

@@ -0,0 +1,59 @@
package dev.galacticraft.mod.content.entity.vehicle;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing license header here too.

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.

3 participants