Skip to content

Commit 6cfa2f7

Browse files
authored
[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.
1 parent 46f4fda commit 6cfa2f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paper-api/src/main/java/org/bukkit/entity/Player.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ default void sendMultiBlockChange(Map<? extends io.papermc.paper.math.Position,
10611061
* @param items the slots to change, where the values are the items to which
10621062
* the slot should be changed. null values will set the slot to air, empty map is not allowed
10631063
*/
1064-
public void sendEquipmentChange(LivingEntity entity, Map<EquipmentSlot, ItemStack> items);
1064+
public void sendEquipmentChange(LivingEntity entity, Map<EquipmentSlot, @Nullable ItemStack> items);
10651065

10661066
// Paper start
10671067
/**

0 commit comments

Comments
 (0)