Browse Source

fix meseta drops

pbs
jake 5 years ago
parent
commit
91c44628ea
  1. 1
      src/entity/item/mod.rs

1
src/entity/item/mod.rs

@ -49,6 +49,7 @@ pub struct Meseta(pub u32);
impl Meseta { impl Meseta {
pub fn as_bytes(&self) -> [u8; 16] { pub fn as_bytes(&self) -> [u8; 16] {
let mut result = [0; 16]; let mut result = [0; 16];
result[0] = 4;
result[12..16].copy_from_slice(&u32::to_le_bytes(self.0)); result[12..16].copy_from_slice(&u32::to_le_bytes(self.0));
result result
} }

Loading…
Cancel
Save