diff options
author | Jason Penilla <[email protected]> | 2022-04-28 19:51:06 -0700 |
---|---|---|
committer | Jason <[email protected]> | 2022-04-28 20:08:08 -0700 |
commit | 6f5e6c60d397058d89892862bd194773d1695315 (patch) | |
tree | 022396a328e7a53595bc1520dae8681ee56ae013 /patches/server/0023-Player-affects-spawning-API.patch | |
parent | ce059b4f993faf1327f5acb6745e469215009808 (diff) | |
download | Paper-6f5e6c60d397058d89892862bd194773d1695315.tar.gz Paper-6f5e6c60d397058d89892862bd194773d1695315.zip |
Use setMessage instead of arraycopy
setMessage affects messages, filteredMessage, and renderMessages, we were only doing an arraycopy for messages
fixes #7774
Diffstat (limited to 'patches/server/0023-Player-affects-spawning-API.patch')
-rw-r--r-- | patches/server/0023-Player-affects-spawning-API.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0023-Player-affects-spawning-API.patch b/patches/server/0023-Player-affects-spawning-API.patch index 70e60cd946..a313b9cda7 100644 --- a/patches/server/0023-Player-affects-spawning-API.patch +++ b/patches/server/0023-Player-affects-spawning-API.patch @@ -117,10 +117,10 @@ index 1e420c4230a326da345b2e28442ece26b44f8259..41d20c16ea165cf166c6f3b228bc8261 for(Player player : this.players()) { if (EntitySelector.NO_SPECTATORS.test(player) && EntitySelector.LIVING_ENTITY_STILL_ALIVE.test(player)) { diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -index 6736fe98ddd475ab30d7c97ad334097671b25b92..6b8e0bdc49b240cc038e01154ba1cd563c795b90 100644 +index 274e4d983015a5c8a8fbfcf269e7cb2cac34333f..087c251cbf0551b6e80b7a4a296720ebabc83c62 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -@@ -1953,8 +1953,20 @@ public class CraftPlayer extends CraftHumanEntity implements Player { +@@ -1955,8 +1955,20 @@ public class CraftPlayer extends CraftHumanEntity implements Player { @Override public String getLocale() { return this.getHandle().locale; |