mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-17 05:41:26 +01:00
parent
2c4d034313
commit
851a363fad
@ -2624,7 +2624,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
this.newTotalExp = newTotalExp;
|
this.newTotalExp = newTotalExp;
|
||||||
this.newLevel = newLevel;
|
this.newLevel = newLevel;
|
||||||
this.deathMessage = deathMessage;
|
this.deathMessage = deathMessage;
|
||||||
+ this.adventure$deathMessage = deathMessage != null ? net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer.legacySection().deserialize(deathMessage) : net.kyori.adventure.text.Component.empty(); // Paper
|
+ this.adventure$deathMessage = deathMessage != null ? net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer.legacySection().deserialize(deathMessage) : null; // Paper
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
@ -2662,7 +2662,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ @Deprecated // Paper
|
+ @Deprecated // Paper
|
||||||
public void setDeathMessage(@Nullable String deathMessage) {
|
public void setDeathMessage(@Nullable String deathMessage) {
|
||||||
this.deathMessage = deathMessage;
|
this.deathMessage = deathMessage;
|
||||||
+ this.adventure$deathMessage = deathMessage != null ? net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer.legacySection().deserialize(deathMessage) : net.kyori.adventure.text.Component.empty(); // Paper
|
+ this.adventure$deathMessage = deathMessage != null ? net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer.legacySection().deserialize(deathMessage) : null; // Paper
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -20,7 +20,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
this(player, drops, droppedExp, 0, deathMessage);
|
this(player, drops, droppedExp, 0, deathMessage);
|
||||||
}
|
}
|
||||||
@@ -0,0 +0,0 @@ public class PlayerDeathEvent extends EntityDeathEvent {
|
@@ -0,0 +0,0 @@ public class PlayerDeathEvent extends EntityDeathEvent {
|
||||||
this.adventure$deathMessage = deathMessage != null ? net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer.legacySection().deserialize(deathMessage) : net.kyori.adventure.text.Component.empty(); // Paper
|
this.adventure$deathMessage = deathMessage != null ? net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer.legacySection().deserialize(deathMessage) : null; // Paper
|
||||||
}
|
}
|
||||||
|
|
||||||
+ @Deprecated // Paper
|
+ @Deprecated // Paper
|
||||||
|
Loading…
Reference in New Issue
Block a user