fix so that it actually always updates both clients
This commit is contained in:
5 files changed
+42
-18
No files matched your search
@@ -4,15 +4,15 @@ use pumpkin_macros::packet;
|
||||
use serde::Serialize;
|
||||
#[derive(Serialize)]
|
||||
#[packet(0x15)]
|
||||
pub struct CSetContainerSlot<'a> {
|
||||
pub struct CSetContainerSlot {
|
||||
window_id: i8,
|
||||
state_id: VarInt,
|
||||
slot: i16,
|
||||
slot_data: &'a Slot,
|
||||
slot_data: Slot,
|
||||
}
|
||||
|
||||
impl<'a> CSetContainerSlot<'a> {
|
||||
pub fn new(window_id: i8, state_id: i32, slot: usize, slot_data: &'a Slot) -> Self {
|
||||
impl CSetContainerSlot {
|
||||
pub fn new(window_id: i8, state_id: i32, slot: usize, slot_data: Slot) -> Self {
|
||||
Self {
|
||||
window_id,
|
||||
state_id: state_id.into(),
|
||||
|
||||
Reference in new issue
Block a user