From fe68760184619c3364ab0e8045b255ed93e90f73 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sat, 28 May 2022 17:08:01 +0100 Subject: [PATCH] Revert "Fixed backwards compatibility" This reverts commit 1f7cf78491a5de482efb8a2b8219c6625719d8c2. --- .../main/java/com/willfp/eco/core/gui/slot/FillerSlot.java | 2 -- eco-api/src/main/java/com/willfp/eco/core/gui/slot/Slot.java | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/eco-api/src/main/java/com/willfp/eco/core/gui/slot/FillerSlot.java b/eco-api/src/main/java/com/willfp/eco/core/gui/slot/FillerSlot.java index e8e7e394..807e7a40 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/gui/slot/FillerSlot.java +++ b/eco-api/src/main/java/com/willfp/eco/core/gui/slot/FillerSlot.java @@ -1,10 +1,8 @@ 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. diff --git a/eco-api/src/main/java/com/willfp/eco/core/gui/slot/Slot.java b/eco-api/src/main/java/com/willfp/eco/core/gui/slot/Slot.java index cebd61e9..5995e11b 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/gui/slot/Slot.java +++ b/eco-api/src/main/java/com/willfp/eco/core/gui/slot/Slot.java @@ -36,10 +36,7 @@ public interface Slot { * @param player The player. * @return The item, or null if no captive default was found. */ - @Nullable - default TestableItem getCaptiveDefault(@NotNull Player player) { - return null; - } + @Nullable TestableItem getCaptiveDefault(@NotNull Player player); /** * Create a builder for an ItemStack.