StrikerRockers-Mods / ClearDespawn

MIT License
10 stars 6 forks source link

Change Item Lifespan to `Entity#lifespan` in Forge #23

Closed ChampionAsh5357 closed 11 months ago

ChampionAsh5357 commented 1 year ago

In Forge, the lifespan check will now look at Entity#lifespan instead of the configuration since items can have differing lifespans per implementation. The check in Fabric remains the same as there is no common API.

The configuration options in Forge have been deprecated for removal but not removed to maintain compatibility. The #getItemDespawnTime without being entity sensitive also remains for this reason.

strikerrocker commented 11 months ago

Thanks for PR