Skip to content

Commit 82193c1

Browse files
committed
Fix /weather command in example resource
1 parent 4e82089 commit 82193c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AlternateLife.RageMP.Net.Example/Server/CommandHandler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public async Task Vehicle(IPlayer player, VehicleHash vehicleName)
2222
[Command("weather")]
2323
public async Task Weather(IPlayer player, WeatherType weatherType)
2424
{
25-
MP.World.Weather = weatherType;
25+
await MP.World.SetWeatherAsync(weatherType);
2626
await player.OutputChatBoxAsync("Weather changed");
2727
}
2828

0 commit comments

Comments
 (0)