diff --git a/src/world/chat_handler.rs b/src/world/chat_handler.rs index ee13777..b35f81d 100644 --- a/src/world/chat_handler.rs +++ b/src/world/chat_handler.rs @@ -64,13 +64,13 @@ impl ChatHandler { .player_data .inventory .equipped - .get_slot_mut(slot as u16) + .get_slot_mut(slot) .id = id; connection .player_data .inventory .equipped - .get_slot_mut(slot as u16) + .get_slot_mut(slot) .quantity = 1; } } diff --git a/src/world/connection.rs b/src/world/connection.rs index 384d110..5f55f9a 100644 --- a/src/world/connection.rs +++ b/src/world/connection.rs @@ -418,7 +418,7 @@ impl ZoneConnection { territory_type = zone_id; } - self.change_zone(territory_type as u16).await; + self.change_zone(territory_type).await; } pub async fn warp_aetheryte(&mut self, aetheryte_id: u32) { @@ -452,7 +452,7 @@ impl ZoneConnection { territory_type = zone_id; } - self.change_zone(territory_type as u16).await; + self.change_zone(territory_type).await; } pub async fn change_weather(&mut self, new_weather_id: u16) {