mhtvsSFrpHdE
mhtvsSFrpHdE
A hint to myself: The dismount height may be related to dragon hit box. Once future updates can use a shorter mob, player may get dismount into underground and get...
@Phiwa I'm sorry for "it's looks like someone is spamming a repository" I mean, these issue is what "I'm going to do next", instead of a feature or bug fix...
@Phiwa I see the code, though I didn't have learn Java yet but I can tell I know what this code is doing. It doesn't have any logical error at...
The latest situation: ``` // TODO: Optimize for better dismount private Location getSafeLandingLoc(Location loc) { // TODO: Temporary solution for avoiding dismount falling damage // We use a fixed height...
Referring to this https://bukkit.org/threads/solved-how-do-you-define-a-new-location-with-a-set-x-y-and-z.80166/ We are required to do this `new Location(w, x, y, z)`
The latest situation: ``` int avoidFallingDamageOffset = 5; if (DragonTravel.getInstance().getConfigHandler().isDismountAtExactLocation()) { Location tempLoc = new Location ( loc.getWorld(), loc.getX(), // Apply the damage avoid height offset loc.getY() - avoidFallingDamageOffset, loc.getZ(),...
Referring to this: http://cs-fundamentals.com/java-programming/java-arithmetic-operators.php ``` System.out.println("You may expect 30 but result is: " + x + y); System.out.println("To get 30, enclose x and y into brackets: " + (x +...
The situation: ``` class HelloWorld { public static void main(String args[]) { double x = 72.15; int y = 5; System.out.println(x - y); } } ``` This will work. And,...
Well actually... the subtract did work. But, ``` [04:28:49 INFO]: 77.15 [04:28:49 INFO]: 77.15 [04:28:49 INFO]: 72.15 [04:28:49 INFO]: Updated2 [04:28:49 INFO]: 5 [04:28:49 INFO]: 72.15 ``` I never think...
@Phiwa I was failed to fix this after 4 hours. The first issue is execute a `player.teleport` with the height same as station height will not prevent player falling from...