mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-05 17:41:46 +00:00
Merge branch 'stable' into next-minor
This commit is contained in:
commit
2b81b53dfa
@ -19,3 +19,12 @@ Released 19th February 2022.
|
|||||||
## Fixes
|
## Fixes
|
||||||
- Fixed multiple players being able to sleep in the same bed.
|
- Fixed multiple players being able to sleep in the same bed.
|
||||||
- Fixed hitbox not resetting properly after swimming or gliding.
|
- Fixed hitbox not resetting properly after swimming or gliding.
|
||||||
|
|
||||||
|
# 4.2.2
|
||||||
|
Released 2nd March 2022.
|
||||||
|
|
||||||
|
## Fixes
|
||||||
|
- Fixed crash in `/dumpmemory` due to usage of non-printable string keys in `CraftingManager`. Array contents in memory dumps are now rendered as prettified key-value pairs.
|
||||||
|
- Fixed output directory for `/dumpmemory`.
|
||||||
|
- `PlayerInventory->isHotbarSlot()` now correctly returns `false` when given `9`.
|
||||||
|
- Fixed ghost items left in the inventory when dropping tools while mining.
|
||||||
|
@ -435,12 +435,13 @@ class PluginManager{
|
|||||||
|
|
||||||
$plugin->getScheduler()->setEnabled(true);
|
$plugin->getScheduler()->setEnabled(true);
|
||||||
$plugin->onEnableStateChange(true);
|
$plugin->onEnableStateChange(true);
|
||||||
|
if($plugin->isEnabled()){ //the plugin may have disabled itself during onEnable()
|
||||||
$this->enabledPlugins[$plugin->getDescription()->getName()] = $plugin;
|
$this->enabledPlugins[$plugin->getDescription()->getName()] = $plugin;
|
||||||
|
|
||||||
(new PluginEnableEvent($plugin))->call();
|
(new PluginEnableEvent($plugin))->call();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function disablePlugins() : void{
|
public function disablePlugins() : void{
|
||||||
foreach($this->getPlugins() as $plugin){
|
foreach($this->getPlugins() as $plugin){
|
||||||
|
@ -130,6 +130,9 @@ class TaskScheduler{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function mainThreadHeartbeat(int $currentTick) : void{
|
public function mainThreadHeartbeat(int $currentTick) : void{
|
||||||
|
if(!$this->enabled){
|
||||||
|
throw new \LogicException("Cannot run heartbeat on a disabled scheduler");
|
||||||
|
}
|
||||||
$this->currentTick = $currentTick;
|
$this->currentTick = $currentTick;
|
||||||
while($this->isReady($this->currentTick)){
|
while($this->isReady($this->currentTick)){
|
||||||
/** @var TaskHandler $task */
|
/** @var TaskHandler $task */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user