1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-06-30 11:47:45 +00:00

Address warning: "warning: casting to the same type is unnecessary (u16 -> u16)"

This commit is contained in:
The Dax 2025-06-23 14:10:04 -04:00 committed by Joshua Goins
parent 82e5021979
commit 89aee8e5d8
2 changed files with 4 additions and 4 deletions

View file

@ -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;
}
}

View file

@ -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) {