Skip to content

Commit 7996165

Browse files
committed
fix: arrow hit no longer run sync on entity
1 parent 999e74b commit 7996165

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/java/io/github/thebusybiscuit/slimefun4/implementation/listeners/SlimefunBowListener.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,13 @@ public void onBowUse(EntityShootBowEvent e) {
6060

6161
@EventHandler
6262
public void onArrowHit(ProjectileHitEvent e) {
63-
Slimefun.runSyncAtEntity(
63+
Slimefun.runSync(
6464
() -> {
6565
if (e.getEntity().isValid() && e.getEntity() instanceof Arrow) {
6666
projectiles.remove(e.getEntity().getUniqueId());
6767
}
6868
},
69-
4L,
70-
e.getEntity());
69+
4L);
7170
}
7271

7372
@EventHandler(priority = EventPriority.HIGH)

0 commit comments

Comments
 (0)