mirror of
https://github.com/xSquishyLiam/mc-GeyserModelEngine-plugin.git
synced 2025-12-19 14:59:19 +00:00
delay
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user