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:
@@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user