mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
removed debug spam
This commit is contained in:
parent
457eee1157
commit
bc979c2853
2 changed files with 3 additions and 4 deletions
|
|
@ -67,7 +67,7 @@ class Player{
|
||||||
private $packetStats;
|
private $packetStats;
|
||||||
private $chunkCount = [];
|
private $chunkCount = [];
|
||||||
private $received = [];
|
private $received = [];
|
||||||
|
public $cratingItems;
|
||||||
/**
|
/**
|
||||||
* @param integer $clientID
|
* @param integer $clientID
|
||||||
* @param string $ip
|
* @param string $ip
|
||||||
|
|
@ -1274,7 +1274,6 @@ class Player{
|
||||||
if(EventHandler::callEvent(new DataPacketReceiveEvent($this, $packet)) === BaseEvent::DENY){
|
if(EventHandler::callEvent(new DataPacketReceiveEvent($this, $packet)) === BaseEvent::DENY){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console($packet->pid());
|
|
||||||
switch($packet->pid()){
|
switch($packet->pid()){
|
||||||
case 0x01:
|
case 0x01:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -90,8 +90,8 @@ class ExperimentalGenerator implements NewLevelGenerator{
|
||||||
public function pickBiome(int $x, int $z){
|
public function pickBiome(int $x, int $z){
|
||||||
$hash = $x * 2345803 ^ $z * 9236449 ^ $this->level->level->getSeed();
|
$hash = $x * 2345803 ^ $z * 9236449 ^ $this->level->level->getSeed();
|
||||||
$hash *= $hash + 223;
|
$hash *= $hash + 223;
|
||||||
$xNoise = $hash >> 20 & 3;
|
$xNoise = ((int)$hash) >> 20 & 3; //why dont u have types for local variables??
|
||||||
$zNoise = $hash >> 22 & 3;
|
$zNoise = ((int)$hash) >> 22 & 3;
|
||||||
if($xNoise == 3){
|
if($xNoise == 3){
|
||||||
$xNoise = 1;
|
$xNoise = 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue