Skip to content

Commit

Permalink
Fixed network bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Edivad99 committed Feb 17, 2024
1 parent 2587d45 commit d47dbc1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public record UpdateSolarPanel(

public static UpdateSolarPanel read(FriendlyByteBuf buf) {
var pos = buf.readBlockPos();
var currentEnergy = buf.readInt();
var currentProduction = buf.readInt();
var currentEnergy = buf.readVarInt();
var currentProduction = buf.readVarInt();
return new UpdateSolarPanel(pos, currentEnergy, currentProduction);
}

Expand Down

0 comments on commit d47dbc1

Please sign in to comment.