Skip to content

Commit

Permalink
Fixup missed fall location types
Browse files Browse the repository at this point in the history
  • Loading branch information
SoSeDiK committed Dec 29, 2024
1 parent 581e20d commit 8e40f76
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Holder {
*
* @param damageSource damage source
* @param damage damage amount
* @param fallLocationType fall location
* @param fallLocationType fall location type
* @param fallDistance fall distance
* @return combat entry
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ static CombatEntry combatEntry(LivingEntity entity, DamageSource damageSource, f
*
* @param damageSource damage source
* @param damage damage amount
* @param fallLocationType fall location
* @param fallLocationType fall location type
* @param fallDistance fall distance
* @return a new combat entry
* @see LivingEntity#calculateFallLocation()
* @see LivingEntity#calculateFallLocationType()
* @see Entity#getFallDistance()
*/
static CombatEntry combatEntry(DamageSource damageSource, float damage, @Nullable FallLocationType fallLocationType, float fallDistance) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1488,5 +1488,5 @@ default void swingHand(@NotNull org.bukkit.inventory.EquipmentSlot hand) {
* @since 1.21.4
*/
@ApiStatus.Experimental
@NotNull FallLocationType calculateFallLocation();
@NotNull FallLocationType calculateFallLocationType();
}
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ public CombatTracker getCombatTracker() {
}

@Override
public FallLocationType calculateFallLocation() {
public FallLocationType calculateFallLocationType() {
net.minecraft.world.damagesource.FallLocation fallLocation = net.minecraft.world.damagesource.FallLocation.getCurrentFallLocation(this.getHandle());
return fallLocation == null ? FallLocationType.GENERIC : PaperCombatTrackerWrapper.minecraftToPaper(fallLocation);
}
Expand Down

0 comments on commit 8e40f76

Please sign in to comment.