Skip to content

Commit

Permalink
Worked on docking
Browse files Browse the repository at this point in the history
  • Loading branch information
JunePrimavera committed Sep 1, 2023
1 parent da96926 commit be71edf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public class SpacecraftEntity extends AbstractHorseEntity {
public int seatCount = 1;
public ArrayList<Vec3d> playerPositionOffsets = new ArrayList<>();
public ArrayList<Float> playerYawOffsets = new ArrayList<>();
public Vec3d dockingPosition;
public ArrayList<Vec3d> dockingPortPositions = new ArrayList<>();
public ArrayList<SpacecraftEntity> dockedCraft = new ArrayList<>();
public Vec3d velocity;
public float storedOxygen = 0;
public float maxOxygen = 1000; // We can settle on a number here later
Expand All @@ -35,9 +36,8 @@ protected SpacecraftEntity(EntityType<? extends AbstractHorseEntity> entityType,
playerYawOffsets.add(0.0F);
}
ClientTickEvents.END_CLIENT_TICK.register(client -> {
if (dockShipKey.wasPressed()) {
if (dockShipKey.wasPressed())
onDockingTrigger();
}
});
}
@Override
Expand All @@ -58,7 +58,7 @@ protected void updatePassengerPosition(Entity passenger, Entity.PositionUpdater


public void onDockingTrigger() {
System.out.println("AAAAAAAAAAAAAAAAAAAaa");

}
@Override
public boolean canBeSaddled() {
Expand Down

0 comments on commit be71edf

Please sign in to comment.