TechnicallyCoded / FoliaLib

This is a wrapper library for aiding in supporting the Folia Paper Fork. This library adds multiple scheduler options to use instead of the Bukkit or Folia native schedulers.
MIT License
70 stars 11 forks source link

Check projectile death state, fixes #14 #24

Closed PikaMug closed 3 months ago

PikaMug commented 3 months ago

Specific check for projectiles, as Paper and Folia treat isValid() differently.

TechnicallyCoded commented 3 months ago

I didn't realize how many times this was checked. Can we move that to a method isValid(entity) and it does all this checking (normal entities, players, projectiles)?

PikaMug commented 3 months ago

Sure, but where do you want it?

TechnicallyCoded commented 3 months ago

At the bottom of each impl, I think there are some other local utilities down there already

PikaMug commented 3 months ago

@TechnicallyCoded ✔️