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:
parent
82e5021979
commit
89aee8e5d8
2 changed files with 4 additions and 4 deletions
|
@ -64,13 +64,13 @@ impl ChatHandler {
|
||||||
.player_data
|
.player_data
|
||||||
.inventory
|
.inventory
|
||||||
.equipped
|
.equipped
|
||||||
.get_slot_mut(slot as u16)
|
.get_slot_mut(slot)
|
||||||
.id = id;
|
.id = id;
|
||||||
connection
|
connection
|
||||||
.player_data
|
.player_data
|
||||||
.inventory
|
.inventory
|
||||||
.equipped
|
.equipped
|
||||||
.get_slot_mut(slot as u16)
|
.get_slot_mut(slot)
|
||||||
.quantity = 1;
|
.quantity = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -418,7 +418,7 @@ impl ZoneConnection {
|
||||||
territory_type = zone_id;
|
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) {
|
pub async fn warp_aetheryte(&mut self, aetheryte_id: u32) {
|
||||||
|
@ -452,7 +452,7 @@ impl ZoneConnection {
|
||||||
territory_type = zone_id;
|
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) {
|
pub async fn change_weather(&mut self, new_weather_id: u16) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue