Flip ?: null check

This commit is contained in:
Németh Noel 2021-06-30 22:28:54 +02:00
parent 059565b397
commit fdf7153986

View File

@ -76,7 +76,7 @@ public class ItemEntity extends Entity {
@SuppressWarnings("removal")
@Deprecated(forRemoval = true)
public static void setMergeUpdateOption(@Nullable net.minestom.server.utils.time.UpdateOption mergeUpdateOption) {
setMergeDelay(mergeUpdateOption == null ? null : mergeUpdateOption.toDuration());
setMergeDelay(mergeUpdateOption != null ? mergeUpdateOption.toDuration() : null);
}
/**