Skip to content

Commit

Permalink
Use default value, impl gravity fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dueris committed May 26, 2024
1 parent 0069fd8 commit 6d01df3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public static void setAttributesToDefault(Player p) {
p.getBukkitEntity().getAttribute(Attribute.GENERIC_KNOCKBACK_RESISTANCE).setBaseValue(0);
p.getBukkitEntity().getAttribute(Attribute.GENERIC_LUCK).setBaseValue(0);
p.getBukkitEntity().getAttribute(Attribute.GENERIC_MAX_HEALTH).setBaseValue(20);
p.getBukkitEntity().getAttribute(Attribute.GENERIC_MOVEMENT_SPEED).setBaseValue(0.10000000149011612F);
p.getBukkitEntity().getAttribute(Attribute.GENERIC_MOVEMENT_SPEED).setBaseValue(p.getBukkitEntity().getAttribute(Attribute.GENERIC_MOVEMENT_SPEED).getDefaultValue());
p.getBukkitEntity().getAttribute(Attribute.GENERIC_GRAVITY).setBaseValue(p.getBukkitEntity().getAttribute(Attribute.GENERIC_GRAVITY).getDefaultValue());
}

public static ItemStack itemProperties(ItemStack item, Component displayName, ItemFlag[] itemFlag, Enchantment enchantment, String lore) {
Expand Down

0 comments on commit 6d01df3

Please sign in to comment.