Remove log for 'unimplemented' SetWeatherAreaState Lua function

This commit is contained in:
KingRainbow44 2023-08-27 16:04:21 -04:00
parent 53db5def4e
commit aa3e23f5f3
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -1261,10 +1261,9 @@ public class ScriptLib {
return new int[] {0,0};
}
//TODO check
public int SetWeatherAreaState(int var1, int var2){
logger.warn("[LUA] Call unimplemented SetWeatherAreaState with {} {}", var1, var2);
getSceneScriptManager().getScene().getPlayers().forEach(p -> p.setWeather(var1, ClimateType.getTypeByValue(var2)));
public int SetWeatherAreaState(int var1, int var2) {
this.getSceneScriptManager().getScene().getPlayers()
.forEach(p -> p.setWeather(var1, ClimateType.getTypeByValue(var2)));
return 0;
}
@ -1285,10 +1284,8 @@ public class ScriptLib {
return 0;
}
//TODO check
public boolean CheckIsInMpMode(){
logger.debug("[LUA] Call CheckIsInMpMode");
return getSceneScriptManager().getScene().getWorld().isMultiplayer();
return this.getSceneScriptManager().getScene().getWorld().isMultiplayer();
}
/**