remove remaining metadata from enums
This commit is contained in:
parent
c376d92790
commit
454e38d1ab
15 changed files with 87 additions and 259 deletions
|
@ -1435,7 +1435,8 @@ public class ClientPlayer implements IClientPlayer
|
|||
// this.gameController.controller.setCheat(packetIn.getInt() == 1);
|
||||
// break;
|
||||
case SET_WEATHER:
|
||||
this.world.setWeather(Weather.getByID(packetIn.getInt()));
|
||||
int id = packetIn.getInt();
|
||||
this.world.setWeather(id >= 0 && id < Weather.values().length ? Weather.values()[id] : Weather.CLEAR);
|
||||
break;
|
||||
case RAIN_STRENGTH:
|
||||
this.world.setRainStrength(packetIn.getFloat(true));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue