From 386decf2681871c500a609e23609d5bcca367c17 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Wed, 23 Jan 2013 19:38:42 +0100 Subject: [PATCH] Updated Threads use the new commit --- src/API/ConsoleAPI.php | 7 ++++++- src/classes/utils/TickLoop.php | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/API/ConsoleAPI.php b/src/API/ConsoleAPI.php index 0ab3fcd5..74eb504a 100644 --- a/src/API/ConsoleAPI.php +++ b/src/API/ConsoleAPI.php @@ -181,7 +181,12 @@ class ConsoleAPI{ } class ConsoleLoop extends Thread{ - var $line = false, $stop = false; + public $line, $stop; + public function __construct(){ + $this->line = false; + $this->stop = false; + } + public function run(){ $fp = fopen("php://stdin", "r"); while($this->stop === false and ($line = fgets($fp)) !== false){ diff --git a/src/classes/utils/TickLoop.php b/src/classes/utils/TickLoop.php index c54c39a2..efe812b8 100644 --- a/src/classes/utils/TickLoop.php +++ b/src/classes/utils/TickLoop.php @@ -26,9 +26,11 @@ the Free Software Foundation, either version 3 of the License, or */ class TickLoop extends Thread{ - var $tick = false, $stop = false, $lastTick = 0; + public $tick, $stop, $lastTic; private $server; public function __construct(PocketMinecraftServer $server){ + $this->tick = false; + $this->lastTick = 0; $this->server = $server; } public function run(){