1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Fix mistakes

This commit is contained in:
RobotHanzo 2021-04-02 21:11:42 +08:00 committed by GitHub
parent 61224ec686
commit 53b38e51be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ public class StormStaff extends SimpleSlimefunItem<ItemUseHandler> {
}
@ParametersAreNonnullByDefault
private void damageItem(@Nonnull Player p, @Nullable ItemStack item) {
private void damageItem(Player p, ItemStack item) {
if (item.getAmount() > 1) {
item.setAmount(item.getAmount() - 1);