diff --git a/src/pocketmine/network/protocol/SetTimePacket.php b/src/pocketmine/network/protocol/SetTimePacket.php index 09b070e87..0d1fcca58 100644 --- a/src/pocketmine/network/protocol/SetTimePacket.php +++ b/src/pocketmine/network/protocol/SetTimePacket.php @@ -23,9 +23,6 @@ namespace pocketmine\network\protocol; #include - -use pocketmine\level\Level; - class SetTimePacket extends DataPacket{ const NETWORK_ID = Info::SET_TIME_PACKET; @@ -38,7 +35,7 @@ class SetTimePacket extends DataPacket{ public function encode(){ $this->reset(); - $this->putInt((int) (($this->time / Level::TIME_FULL) * 19200)); + $this->putInt($this->time); $this->putByte($this->started ? 1 : 0); }