This commit is contained in:
parent
89640fe0c0
commit
74c4662121
16
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
16
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user