Skip to content

Commit

Permalink
remove printStackTrace from fixRiderPosOnDismount
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 committed Jul 10, 2021
1 parent c8b5454 commit a767d14
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
--- a/jp/ngt/rtm/entity/vehicle/EntityVehicleBase.java
+++ b/jp/ngt/rtm/entity/vehicle/EntityVehicleBase.java
@@ -269,12 +269,13 @@
@@ -268,13 +268,13 @@

try {
ModelSetBase modelsetbase = (ModelSetBase)this.getResourceState().getResourceSet();
axisalignedbb = modelsetbase.getCollisionObj().getSizeBox();
} catch (NullPointerException nullpointerexception) {
nullpointerexception.printStackTrace();
- nullpointerexception.printStackTrace();
- axisalignedbb = new AxisAlignedBB(-1.5D, 0.0D, -2.0D, 1.5D, 3.0D, 2.0D);
}
+ if (axisalignedbb == null)
Expand All @@ -15,7 +16,7 @@
vec3 = vec3.rotateAroundY(-this.rotationYaw);
float f = NGTMath.wrapAngle(-passenger.rotationYaw - this.rotationYaw);
double d0 = (double)f >= 0.0D ? axisalignedbb.maxX + 0.5D : axisalignedbb.minX - 0.5D;
@@ -544,6 +545,18 @@
@@ -544,6 +544,18 @@
}

public VehicleNGTO getNGTO() {
Expand Down

0 comments on commit a767d14

Please sign in to comment.