9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-29 11:59:11 +00:00

Improve locales

This commit is contained in:
XiaoMoMi
2024-07-30 15:07:04 +08:00
parent abeccdf870
commit 5b9c65caf7
6 changed files with 42 additions and 17 deletions

View File

@@ -24,6 +24,7 @@ import org.bukkit.inventory.InventoryHolder;
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.NotNull;
import java.util.Objects;
import java.util.UUID;
/**
@@ -40,7 +41,7 @@ public class FishingBagHolder implements InventoryHolder {
* @param owner the UUID of the player who owns this fishing bag.
*/
public FishingBagHolder(UUID owner) {
this.owner = owner;
this.owner = Objects.requireNonNull(owner, "uuid should be nonnull");
}
/**