Skip to content

Commit

Permalink
Update EnderBlockEntity.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ferriarnus committed Aug 3, 2023
1 parent 31bd285 commit bdf1786
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ public void sync() {

@UseOnly(LogicalSide.CLIENT)
public void clientHandleBufferSync(FriendlyByteBuf buf) {
int amount = buf.readInt();
for (; amount>0; amount--) { //read until we can't
for (int amount = buf.readInt(); amount > 0; amount--) {
int index = buf.readInt();
dataSlots.get(index).fromBuffer(buf);
}
Expand Down

0 comments on commit bdf1786

Please sign in to comment.