Allow null itemstack for Player#sendEquipmentChange

This commit is contained in:
David Scandurra 2023-10-25 20:36:25 +02:00
parent 93c87bedaf
commit d1685ef68f

View file

@ -1134,7 +1134,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
@Override
public void sendEquipmentChange(LivingEntity entity, EquipmentSlot slot, ItemStack item) {
this.sendEquipmentChange(entity, Map.of(slot, item));
this.sendEquipmentChange(entity, java.util.Collections.singletonMap(slot, item)); // Paper - replace Map.of to allow null values
}
@Override