Electroblob hit the ground too hard

This commit is contained in:
Electroblob77
2020-01-13 18:54:43 +00:00
parent 807fc61541
commit 996ec9a7f7
@@ -464,7 +464,8 @@ public final class WizardryEventHandler {
// Wizardry.logger.info("Replaced fall distance {} with effective distance {} based on entity velocity", event.getDistance(), y);
// }
event.setDistance((float)y);
// Don't let it increase fall damage beyond vanilla values
if(y < event.getDistance()) event.setDistance((float)y);
}
}
}