13
0
geforkt von Mirrors/Paper

Allow null itemstack for Player#sendEquipmentChange

Dieser Commit ist enthalten in:
David Scandurra 2023-10-25 20:36:25 +02:00
Ursprung 93c87bedaf
Commit d1685ef68f

Datei anzeigen

@ -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