Skip to content

Commit

Permalink
Merge pull request #15 from Jakllp/master
Browse files Browse the repository at this point in the history
Bump to 24.1
  • Loading branch information
storm345 authored Feb 19, 2021
2 parents 3c0d580 + d59790d commit fcc6b45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/main/java/com/useful/ucars/uCarsListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,11 @@ public uCarsListener(ucars plugin) {
public Vector calculateCarStats(Entity car, Player player,
Vector velocity, double currentMult) {
if (UEntityMeta.hasMetadata(car, "car.frozen") || car.hasMetadata("car.frozen")) {
if(car.hasMetadata("inertialYAxis")) {
if(car.hasMetadata("car.inertialYAxis")) {
velocity = new Vector(0, velocity.getY(), 0); // Don't freeze Y-velocity
return velocity;
}

if(car.getType() == EntityType.MINECART) {
velocity = new Vector(0, GRAVITY_Y_VELOCITY_MAGNITUDE, 0);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: uCars
main: com.useful.ucars.ucars
version: 24
version: 24.1
api-version: 1.13
softdepend: [Vault]
depend: [ProtocolLib]
Expand Down

0 comments on commit fcc6b45

Please sign in to comment.