From a767d14c36b8f25ea225e1e74407a0194b8b159e Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Sat, 10 Jul 2021 09:17:33 +0900 Subject: [PATCH] remove printStackTrace from fixRiderPosOnDismount --- .../ngt/rtm/entity/vehicle/EntityVehicleBase.java.pm.patch | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/rtm-patches/jp/ngt/rtm/entity/vehicle/EntityVehicleBase.java.pm.patch b/src/main/rtm-patches/jp/ngt/rtm/entity/vehicle/EntityVehicleBase.java.pm.patch index ebf35ee8..d77c3e52 100644 --- a/src/main/rtm-patches/jp/ngt/rtm/entity/vehicle/EntityVehicleBase.java.pm.patch +++ b/src/main/rtm-patches/jp/ngt/rtm/entity/vehicle/EntityVehicleBase.java.pm.patch @@ -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) @@ -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() {