Snowiiii 2024-10-29 16:35:09 +01:00
parent 89640fe0c0
commit 74c4662121
2 changed files with 10 additions and 21 deletions

View File

@ -11,22 +11,6 @@ body:
options:
- label: I confirm this is not a duplicate.
required: true
- type: input
id: os
attributes:
label: Operating System
description: What operating system are you using?
placeholder: "Example: macOS Big Sur"
validations:
required: true
- type: input
id: version
attributes:
label: Server Software Version/Commit
description: What Server Software Version/Commit are you using?
placeholder: "Example: 1.0.0/39b4cb3"
validations:
required: true
- type: textarea
id: problem
attributes:

View File

@ -657,11 +657,16 @@ impl Player {
if self.gamemode.load() != GameMode::Creative {
return Err(InventoryError::PermissionError);
}
let valid_slot = packet.slot >= 1 && packet.slot <= 45;
if valid_slot {
self.inventory.lock().await.set_slot(
packet.slot as usize,
packet.clicked_item.to_item(),
false,
)
)?;
};
// TODO: The Item was droped per drag and drop,
Ok(())
}
// TODO: