Fixed backwards compatibility

This commit is contained in:
Auxilor
2022-05-28 16:43:35 +01:00
parent fc3c80f633
commit 1f7cf78491
2 changed files with 6 additions and 1 deletions

View File

@@ -1,8 +1,10 @@
package com.willfp.eco.core.gui.slot;
import com.willfp.eco.core.items.TestableItem;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* A filler slot is a slot that does nothing when clicked.

View File

@@ -36,7 +36,10 @@ public interface Slot {
* @param player The player.
* @return The item, or null if no captive default was found.
*/
@Nullable TestableItem getCaptiveDefault(@NotNull Player player);
@Nullable
default TestableItem getCaptiveDefault(@NotNull Player player) {
return null;
}
/**
* Create a builder for an ItemStack.