Remove unnecessary size check for queues

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2021-11-02 01:51:46 +01:00
parent ae97aec7aa
commit ec90af0e12
2 changed files with 2 additions and 2 deletions

View File

@ -528,7 +528,7 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
}
// scheduled tasks
if (!nextTick.isEmpty()) {
{
Consumer<Entity> callback;
while ((callback = nextTick.poll()) != null) {
callback.accept(this);

View File

@ -571,7 +571,7 @@ public abstract class Instance implements BlockGetter, BlockSetter, Tickable, Ta
@Override
public void tick(long time) {
// Scheduled tasks
if (!nextTick.isEmpty()) {
{
Consumer<Instance> callback;
while ((callback = nextTick.poll()) != null) {
callback.accept(this);