fix last commit

This commit is contained in:
UnknownShadow200 2017-02-06 17:27:39 +11:00
parent 7296420e80
commit 7241f954e0

View File

@ -173,11 +173,12 @@ namespace MCGalaxy {
return buffer; return buffer;
} }
public static byte[] EntityProperty(EntityProp prop, int value) { public static byte[] EntityProperty(byte id, EntityProp prop, int value) {
byte[] buffer = new byte[6]; byte[] buffer = new byte[7];
buffer[0] = Opcode.CpeSetEntityProperty; buffer[0] = Opcode.CpeSetEntityProperty;
buffer[1] = (byte)prop; buffer[1] = id;
NetUtils.WriteI32(value, buffer, 2); buffer[2] = (byte)prop;
NetUtils.WriteI32(value, buffer, 3);
return buffer; return buffer;
} }
} }