mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-08 01:17:47 +01:00
Removed redundant check
This commit is contained in:
parent
92cbc4727c
commit
a5a370783d
@ -1624,10 +1624,6 @@ public class Entity implements Viewable, Tickable, EventHandler<EntityEvent>, Da
|
|||||||
* @param cooldown custom cooldown for position synchronization.
|
* @param cooldown custom cooldown for position synchronization.
|
||||||
*/
|
*/
|
||||||
public void setCustomSynchronizationCooldown(@Nullable Duration cooldown) {
|
public void setCustomSynchronizationCooldown(@Nullable Duration cooldown) {
|
||||||
if (cooldown == null) {
|
|
||||||
this.customSynchronizationCooldown = null;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.customSynchronizationCooldown = cooldown;
|
this.customSynchronizationCooldown = cooldown;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user