mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-04 23:47:59 +01:00
Add null check
This commit is contained in:
parent
a5a370783d
commit
ec4d24b9a8
@ -432,7 +432,7 @@ public abstract class Instance implements BlockModifier, Tickable, TagHandler, P
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(forRemoval = true)
|
||||
public void setTimeUpdate(@Nullable net.minestom.server.utils.time.UpdateOption timeUpdate) {
|
||||
setTimeUpdate(timeUpdate.toDuration());
|
||||
setTimeUpdate(timeUpdate == null ? null : timeUpdate.toDuration());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user