From a5a370783d8cfc8317d5a19e9bc3ef88fb53c5c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9meth=20Noel?= Date: Wed, 30 Jun 2021 22:00:05 +0200 Subject: [PATCH] Removed redundant check --- src/main/java/net/minestom/server/entity/Entity.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/net/minestom/server/entity/Entity.java b/src/main/java/net/minestom/server/entity/Entity.java index 8e2a4c758..71670481a 100644 --- a/src/main/java/net/minestom/server/entity/Entity.java +++ b/src/main/java/net/minestom/server/entity/Entity.java @@ -1624,10 +1624,6 @@ public class Entity implements Viewable, Tickable, EventHandler, Da * @param cooldown custom cooldown for position synchronization. */ public void setCustomSynchronizationCooldown(@Nullable Duration cooldown) { - if (cooldown == null) { - this.customSynchronizationCooldown = null; - return; - } this.customSynchronizationCooldown = cooldown; }