Removed redundant check

This commit is contained in:
Németh Noel 2021-06-30 22:00:05 +02:00
parent 92cbc4727c
commit a5a370783d

View File

@ -1624,10 +1624,6 @@ public class Entity implements Viewable, Tickable, EventHandler<EntityEvent>, Da
* @param cooldown custom cooldown for position synchronization.
*/
public void setCustomSynchronizationCooldown(@Nullable Duration cooldown) {
if (cooldown == null) {
this.customSynchronizationCooldown = null;
return;
}
this.customSynchronizationCooldown = cooldown;
}