From 6cfa2f7f315cbad23d7b12984b751f2721b496b6 Mon Sep 17 00:00:00 2001 From: David <54660361+NonSwag@users.noreply.github.com> Date: Fri, 14 Feb 2025 18:39:44 +0100 Subject: [PATCH] [ci skip] Add missing nullability annotation to sendEquipmentChange method (#12112) Marked ItemStack parameter as `@Nullable` to explicitly indicate it can be null. This improves clarity, avoids nullability problems, and aligns with the method's documented behavior for handling null values. --- paper-api/src/main/java/org/bukkit/entity/Player.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/entity/Player.java b/paper-api/src/main/java/org/bukkit/entity/Player.java index 0081dd53b..69f982d1d 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Player.java +++ b/paper-api/src/main/java/org/bukkit/entity/Player.java @@ -1061,7 +1061,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM * @param items the slots to change, where the values are the items to which * the slot should be changed. null values will set the slot to air, empty map is not allowed */ - public void sendEquipmentChange(LivingEntity entity, Map items); + public void sendEquipmentChange(LivingEntity entity, Map items); // Paper start /**