fix play record rewrites

This commit is contained in:
Marco Neuhaus 2019-05-01 14:46:06 +02:00
parent adc8c56862
commit da67500eaa

View File

@ -109,7 +109,7 @@ public class WorldPackets1_13_1 {
int id = wrapper.get(Type.INT, 0);
int data = wrapper.get(Type.INT, 1);
if (id == 1010) { // Play record
wrapper.set(Type.INT, 1, data = InventoryPackets1_13_1.getNewItemId(data));
wrapper.set(Type.INT, 1, data = InventoryPackets1_13_1.getOldItemId(data));
} else if (id == 2001) { // Block break + block break sound
wrapper.set(Type.INT, 1, data = Protocol1_13To1_13_1.getNewBlockStateId(data));
}