This commit is contained in:
zimzaza4
2024-11-14 09:00:33 +08:00
parent 24415dabce
commit da6e885d02

View File

@@ -131,7 +131,7 @@ public class EntityTask {
private void sendSpawnPacket(Player onlinePlayer) { private void sendSpawnPacket(Player onlinePlayer) {
EntityTask task = model.getTask(); EntityTask task = model.getTask();
int delay = 1; int delay = 50;
boolean firstJoined = GeyserModelEngine.getInstance().getJoinedPlayer().getIfPresent(onlinePlayer) != null; boolean firstJoined = GeyserModelEngine.getInstance().getJoinedPlayer().getIfPresent(onlinePlayer) != null;
if (firstJoined) { if (firstJoined) {
delay = GeyserModelEngine.getInstance().getJoinSendDelay(); delay = GeyserModelEngine.getInstance().getJoinSendDelay();
@@ -154,8 +154,8 @@ public class EntityTask {
sendScale(Collections.singleton(player), true); sendScale(Collections.singleton(player), true);
sendColor(Collections.singleton(player), true); sendColor(Collections.singleton(player), true);
updateEntityProperties(Collections.singleton(player), true); updateEntityProperties(Collections.singleton(player), true);
}, 20, TimeUnit.MILLISECONDS); }, 1000, TimeUnit.MILLISECONDS);
}, delay * 20L, TimeUnit.MILLISECONDS); }, delay * 50L, TimeUnit.MILLISECONDS);
} }
public void sendScale(Collection<Player> players, boolean firstSend) { public void sendScale(Collection<Player> players, boolean firstSend) {