Minor display change

This commit is contained in:
Auxilor
2021-08-12 16:13:59 +01:00
parent e053514b94
commit 378218b7da
3 changed files with 5 additions and 9 deletions

View File

@@ -71,10 +71,6 @@ public class Display {
*/
public ItemStack display(@NotNull final ItemStack itemStack,
@Nullable final Player player) {
if (!itemStack.hasItemMeta()) {
return itemStack; // return early if there's no customization of the item
}
Map<String, Object[]> pluginVarArgs = new HashMap<>();
for (DisplayPriority priority : DisplayPriority.values()) {

View File

@@ -17,7 +17,7 @@ public interface SlotModifier {
* @param menu The menu.
* @param previous The previous ItemStack.
*/
void provide(@NotNull Player player,
@NotNull Menu menu,
@NotNull ItemStack previous);
void modify(@NotNull Player player,
@NotNull Menu menu,
@NotNull ItemStack previous);
}