mirror of
https://github.com/xSquishyLiam/mc-GeyserModelEngine-plugin.git
synced 2025-12-19 14:59:19 +00:00
fix multi player bug
This commit is contained in:
@@ -123,14 +123,16 @@ public class EntityTask {
|
||||
}
|
||||
|
||||
BaseEntity<?> base = modeledEntity.getBase();
|
||||
Optional<Player> player = viewers.stream().findAny();
|
||||
if (player.isEmpty()) return;
|
||||
// Optional<Player> player = viewers.stream().findAny();
|
||||
// if (player.isEmpty()) return;
|
||||
for (Player viewer : viewers) {
|
||||
|
||||
updateEntityProperties(player.get(), false);
|
||||
updateEntityProperties(viewer, false);
|
||||
|
||||
// do not actually use this, atleast bundle these up ;(
|
||||
sendScale(player.get(), false);
|
||||
sendColor(player.get(), false);
|
||||
// do not actually use this, atleast bundle these up ;(
|
||||
sendScale(viewer, false);
|
||||
sendColor(viewer, false);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user