mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 20:07:09 +00:00
Merge branch 'stable' into minor-next
This commit is contained in:
commit
30ee0aa63d
@ -52,6 +52,9 @@ class CakeWithCandle extends BaseCake{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function onInteract(Item $item, int $face, Vector3 $clickVector, ?Player $player = null, array &$returnedItems = []) : bool{
|
public function onInteract(Item $item, int $face, Vector3 $clickVector, ?Player $player = null, array &$returnedItems = []) : bool{
|
||||||
|
if($this->lit && $face !== Facing::UP){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if($this->onInteractCandle($item, $face, $clickVector, $player, $returnedItems)){
|
if($this->onInteractCandle($item, $face, $clickVector, $player, $returnedItems)){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -592,7 +592,6 @@ class InventoryManager{
|
|||||||
$info = $this->trackItemStack($entry, $slot, $itemStack, null);
|
$info = $this->trackItemStack($entry, $slot, $itemStack, null);
|
||||||
$contents[] = new ItemStackWrapper($info->getStackId(), $itemStack);
|
$contents[] = new ItemStackWrapper($info->getStackId(), $itemStack);
|
||||||
}
|
}
|
||||||
$clearSlotWrapper = new ItemStackWrapper(0, ItemStack::null());
|
|
||||||
if($entry->complexSlotMap !== null){
|
if($entry->complexSlotMap !== null){
|
||||||
foreach($contents as $slotId => $info){
|
foreach($contents as $slotId => $info){
|
||||||
$packetSlot = $entry->complexSlotMap->mapCoreToNet($slotId) ?? null;
|
$packetSlot = $entry->complexSlotMap->mapCoreToNet($slotId) ?? null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user