fix: clippy warns
This commit is contained in:
parent
65f18c0dca
commit
920f51f782
@ -54,7 +54,7 @@ impl CPlayDisconnect {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> ClientPacket for CPlayDisconnect {
|
impl ClientPacket for CPlayDisconnect {
|
||||||
const PACKET_ID: VarInt = 0x1D;
|
const PACKET_ID: VarInt = 0x1D;
|
||||||
|
|
||||||
fn write(&self, bytebuf: &mut ByteBuffer) {
|
fn write(&self, bytebuf: &mut ByteBuffer) {
|
||||||
|
|||||||
@ -8,7 +8,7 @@ use mio::{event::Event, Poll};
|
|||||||
use pumpkin_protocol::{
|
use pumpkin_protocol::{
|
||||||
client::{
|
client::{
|
||||||
config::CPluginMessage,
|
config::CPluginMessage,
|
||||||
play::{CChunkDataUpdateLight, CGameEvent, CLogin, CSyncPlayerPostion},
|
play::{CChunkDataUpdateLight, CGameEvent, CLogin},
|
||||||
},
|
},
|
||||||
BitSet, PacketError, Players, Sample, StatusResponse, VarInt, VarInt32, Version,
|
BitSet, PacketError, Players, Sample, StatusResponse, VarInt, VarInt32, Version,
|
||||||
};
|
};
|
||||||
@ -96,9 +96,7 @@ impl Server {
|
|||||||
pub fn spawn_player(&mut self, client: &mut Client) {
|
pub fn spawn_player(&mut self, client: &mut Client) {
|
||||||
dbg!("spawning player");
|
dbg!("spawning player");
|
||||||
let entity_id = self.new_entity_id();
|
let entity_id = self.new_entity_id();
|
||||||
let player = Player::new(Entity {
|
let player = Player::new(Entity { entity_id });
|
||||||
entity_id,
|
|
||||||
});
|
|
||||||
client.player = Some(player);
|
client.player = Some(player);
|
||||||
|
|
||||||
client
|
client
|
||||||
@ -138,7 +136,7 @@ impl Server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// todo: do this in a world
|
// todo: do this in a world
|
||||||
fn spawn_test_chunk(client: &mut Client) {
|
fn _spawn_test_chunk(client: &mut Client) {
|
||||||
let test_chunk = TestChunk::new();
|
let test_chunk = TestChunk::new();
|
||||||
client
|
client
|
||||||
.send_packet(CChunkDataUpdateLight::new(
|
.send_packet(CChunkDataUpdateLight::new(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user