amadornes / MCMultiPart

A universal multipart API for Modern Minecraft
Other
67 stars 23 forks source link

Use an ordered set for scheduled ticks #140

Closed SquidDev closed 2 years ago

SquidDev commented 5 years ago

The previous implementation required the world tick to be exactly what was expected, while this handles any case where the deadline has elapsed. This caused 0-tick-delays to be ignored, and potentially could cause issues if the update was deferred until a later tick.