refactor(inventory): replace per-slot Arc<Mutex<ItemStack>> with container-level synchronization
This commit is contained in:
1 parent
ffcf09ece4
commit
63d97e2c82
121 files changed
+1674
-1931
No files matched your search
@@ -157,7 +157,6 @@ use pumpkin_util::math::position::BlockPos;
|
||||
use pumpkin_world::world::{BlockAccessor, BlockFlags};
|
||||
use rustc_hash::FxHashMap;
|
||||
use std::sync::Arc;
|
||||
use tokio::sync::Mutex;
|
||||
|
||||
use super::BlockIsReplacing;
|
||||
use super::blocks::plant::crop::gourds::attached_stem::AttachedStemBlock;
|
||||
@@ -804,7 +803,7 @@ impl BlockRegistry {
|
||||
player: &Arc<Player>,
|
||||
position: &BlockPos,
|
||||
hit: &BlockHitResult<'_>,
|
||||
item_stack: &Arc<Mutex<ItemStack>>,
|
||||
item_stack: &mut ItemStack,
|
||||
equipment_slot: &EquipmentSlot,
|
||||
server: &Server,
|
||||
world: &Arc<World>,
|
||||
|
||||
Reference in new issue
Block a user