9
0
mirror of https://github.com/SparklyPower/SparklyPaper.git synced 2025-12-19 15:09:27 +00:00

Whoops, fix precondition check

This commit is contained in:
MrPowerGamerBR
2024-08-25 23:13:39 -03:00
parent 6be0b3ed79
commit 69c85f479a

View File

@@ -42,7 +42,7 @@ index 5f9f7e325e3e0276f7a475c4a4725cc0e1b54afd..71d60f72d645abe074c0641b027e716a
+ +
+ @Override + @Override
+ public void setCustomServerAiStepTickRate(int newValue) { + public void setCustomServerAiStepTickRate(int newValue) {
+ com.google.common.base.Preconditions.checkArgument(0 >= newValue, "newValue cannot be less than or equal to zero"); + com.google.common.base.Preconditions.checkArgument(newValue > 0, "newValue cannot be less than or equal to zero");
+ this.getHandle().customServerAiStepTickRate = newValue; + this.getHandle().customServerAiStepTickRate = newValue;
+ } + }
+ // SparklyPaper end + // SparklyPaper end