This commit is contained in:
zimzaza4
2024-10-01 17:22:12 +08:00
parent 292d296c43
commit af7dc8d2ad
2 changed files with 38 additions and 33 deletions

View File

@@ -114,7 +114,6 @@ public final class GeyserModelEngine extends JavaPlugin {
try {
for (Map<ActiveModel, ModelEntity> models : ModelEntity.ENTITIES.values()) {
models.values().forEach(ModelEntity::teleportToModel);
}
} catch (Throwable t) {
t.printStackTrace();
@@ -122,6 +121,7 @@ public final class GeyserModelEngine extends JavaPlugin {
}, 10, entityPositionUpdatePeriod, TimeUnit.MILLISECONDS);
scheduler.scheduleWithFixedDelay(() -> {
try {
for (Map<ActiveModel, ModelEntity> models : ModelEntity.ENTITIES.values()) {
@@ -131,6 +131,9 @@ public final class GeyserModelEngine extends JavaPlugin {
t.printStackTrace();
}
}, 10, entityPositionUpdatePeriod, TimeUnit.MILLISECONDS);
BedrockMountControl.startTask();
}