Add pumpkin-world

also refactor player
This commit is contained in:
Snowiiii committed 2024-08-04 00:29:20 +02:00
1 parent 31aa333410
commit ae69bbc7f1
20 files changed
+342 -268

No files matched your search

+3 -3
View File
@@ -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>,
}
+2 -2
View File
@@ -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 -1
View File
@@ -1,7 +1,7 @@
use crate::{ServerPacket, VarInt};
pub struct SConfirmTeleport {
teleport_id: VarInt,
pub teleport_id: VarInt,
}
impl ServerPacket for SConfirmTeleport {