Skip to content

Commit

Permalink
Fix weather changing
Browse files Browse the repository at this point in the history
  • Loading branch information
sillerud committed Jan 6, 2014
1 parent 0ad565f commit f635aa6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ public void rewriteClientToServer(ByteBuf in, ByteBuf out)
public void rewriteServerToClient(ByteBuf in, ByteBuf out)
{
byte reason = in.readByte();
if ( reason == 1 )
{
reason = 2;
} else if ( reason == 2 )
{
reason = 1;
}
byte gameMode = in.readByte();
out.writeByte( reason );
out.writeFloat( gameMode );
Expand Down

0 comments on commit f635aa6

Please sign in to comment.