Skip to content

Commit b02a257

Browse files
authored
Fix data loose in enchantment table item rewriting in 1.8->1.7 (#554)
1 parent a4b6667 commit b02a257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/com/viaversion/viarewind/protocol/v1_8to1_7_6_10/rewriter/BlockItemPacketRewriter1_8.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public void register() {
134134
Item[] old = items;
135135
items = new Item[old.length - 1];
136136
items[0] = old[0];
137-
System.arraycopy(old, 2, items, 1, old.length - 3);
137+
System.arraycopy(old, 2, items, 1, old.length - 2);
138138
}
139139
for (int i = 0; i < items.length; i++) {
140140
items[i] = handleItemToClient(wrapper.user(), items[i]);

0 commit comments

Comments
 (0)