Add pumpkin-world
also refactor player
This commit is contained in:
1 parent
31aa333410
commit
ae69bbc7f1
20 files changed
+342
-268
No files matched your search
@@ -92,7 +92,7 @@ impl<'a> ClientPacket for CKnownPacks<'a> {
|
||||
|
||||
pub struct CRegistryData<'a> {
|
||||
registry_id: &'a str,
|
||||
entries: &'a [RegistryEntry],
|
||||
entries: &'a [RegistryEntry<'a>],
|
||||
}
|
||||
|
||||
impl<'a> CRegistryData<'a> {
|
||||
@@ -104,8 +104,8 @@ impl<'a> CRegistryData<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
pub struct RegistryEntry {
|
||||
pub entry_id: String,
|
||||
pub struct RegistryEntry<'a> {
|
||||
pub entry_id: &'a str,
|
||||
pub data: Vec<u8>,
|
||||
}
|
||||
|
||||
|
||||
@@ -312,9 +312,9 @@ pub struct BlockEntity {
|
||||
}
|
||||
|
||||
pub struct SkyLight {
|
||||
array: Vec<u8>,
|
||||
pub array: Vec<u8>,
|
||||
}
|
||||
|
||||
pub struct BlockLight {
|
||||
array: Vec<u8>,
|
||||
pub array: Vec<u8>,
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
use crate::{ServerPacket, VarInt};
|
||||
|
||||
pub struct SConfirmTeleport {
|
||||
teleport_id: VarInt,
|
||||
pub teleport_id: VarInt,
|
||||
}
|
||||
|
||||
impl ServerPacket for SConfirmTeleport {
|
||||
|
||||
Reference in new issue
Block a user