Skip to content

Commit 0ecf3fb

Browse files
committed
Update API
1 parent d7fdbc3 commit 0ecf3fb

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

pom.xml

+6-6
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,15 @@
118118

119119
<dependencies>
120120
<dependency>
121-
<groupId>io.papermc.paper</groupId>
122-
<artifactId>paper-api</artifactId>
123-
<version>1.20.4-R0.1-SNAPSHOT</version>
121+
<groupId>com.ticxo.modelengine</groupId>
122+
<artifactId>ModelEngine</artifactId>
123+
<version>R4.0.8</version>
124124
<scope>provided</scope>
125125
</dependency>
126126
<dependency>
127-
<groupId>com.ticxo.modelengine</groupId>
128-
<artifactId>ModelEngine</artifactId>
129-
<version>R4.0.4</version>
127+
<groupId>io.papermc.paper</groupId>
128+
<artifactId>paper-api</artifactId>
129+
<version>1.20.4-R0.1-SNAPSHOT</version>
130130
<scope>provided</scope>
131131
</dependency>
132132
<dependency>

src/main/java/re/imc/geysermodelengine/model/EntityTask.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,12 @@ public void run(GeyserModelEngine instance) {
375375
sendHitBoxToAll();
376376

377377
Runnable asyncTask = () -> {
378-
checkViewers(model.getViewers());
379-
runAsync();
378+
try {
379+
checkViewers(model.getViewers());
380+
runAsync();
381+
} catch (Throwable t) {
382+
t.printStackTrace();
383+
}
380384
};
381385
scheduledFuture = GeyserModelEngine.getInstance().getScheduler().scheduleAtFixedRate(asyncTask, 0, 20, TimeUnit.MILLISECONDS);
382386

0 commit comments

Comments
 (0)