Skip to content

Commit

Permalink
Revert "task for inventory transactions"
Browse files Browse the repository at this point in the history
This reverts commit 2b29a10.
  • Loading branch information
dexdurable committed Sep 22, 2020
1 parent 1e744eb commit a1b6d42
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 38 deletions.
5 changes: 1 addition & 4 deletions src/pocketmine/Player.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@
use pocketmine\network\protocol\v331\BiomeDefinitionListPacket;
use pocketmine\network\protocol\v310\AvailableEntityIdentifiersPacket;
use pocketmine\network\protocol\v392\CreativeItemsListPacket;
use pocketmine\scheduler\InventoryTransactionTask;
use function rand;
use function random_int;

Expand Down Expand Up @@ -4140,9 +4139,7 @@ private function normalTransactionLogic($packet) {
// echo '[INFO] Transaction execute holded.'.PHP_EOL;
} else {
// echo '[INFO] Transaction execute fail.'.PHP_EOL;
$trGroup->attempts = 0;
InventoryTransactionTask::$data[] = $trGroup;
//$trGroup->sendInventories();
$trGroup->sendInventories();
}
} else {
// echo '[INFO] Transaction successfully executed.'.PHP_EOL;
Expand Down
3 changes: 0 additions & 3 deletions src/pocketmine/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@
use pocketmine\utils\MetadataConvertor;
use pocketmine\event\server\SendRecipiesList;
use pocketmine\network\protocol\PEPacket;
use pocketmine\scheduler\InventoryTransactionTask;
use pocketmine\tile\Beacon;
use pocketmine\tile\Banner;

Expand Down Expand Up @@ -1729,8 +1728,6 @@ public function __construct(\ClassLoader $autoloader, \ThreadedLogger $logger, $
if($this->getAdvancedProperty("main.player-shuffle", 0) > 0){
$this->scheduler->scheduleDelayedRepeatingTask(new CallbackTask([$this, "shufflePlayers"]), $this->getAdvancedProperty("main.player-shuffle", 0), $this->getAdvancedProperty("main.player-shuffle", 0));
}

$this->scheduler->scheduleRepeatingTask(new InventoryTransactionTask(), 2);

$this->modsManager = new ModsManager();

Expand Down
31 changes: 0 additions & 31 deletions src/pocketmine/scheduler/InventoryTransactionTask.php

This file was deleted.

0 comments on commit a1b6d42

Please sign in to comment.