mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-27 05:13:46 +00:00
Fixed ladders
This commit is contained in:
parent
4f3e49b6a9
commit
8d2862a744
@ -222,8 +222,9 @@ class ServerAPI{
|
||||
}
|
||||
@ini_set("memory_limit", $memory);
|
||||
}else{
|
||||
$this->setProperty("memory-limit", "256M");
|
||||
$this->setProperty("memory-limit", "128M");
|
||||
}
|
||||
|
||||
if(!$this->config->exists("server-invisible")){
|
||||
$this->config->set("server-invisible", false);
|
||||
}
|
||||
|
@ -39,9 +39,11 @@ class LadderBlock extends TransparentBlock{
|
||||
4 => 4,
|
||||
5 => 5,
|
||||
);
|
||||
$this->meta = $faces[$face];
|
||||
$this->level->setBlock($block, $this);
|
||||
return true;
|
||||
if(isset($faces[$face])){
|
||||
$this->meta = $faces[$face];
|
||||
$this->level->setBlock($block, $this);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -232,7 +232,7 @@ class MinecraftInterface{
|
||||
|
||||
if(count($this->chunked[$CID][3][$ID]) === $count){
|
||||
ksort($this->chunked[$CID][3][$ID]);
|
||||
$data = gzinflate(implode($this->chunked[$CID][3][$ID]));
|
||||
$data = gzinflate(implode($this->chunked[$CID][3][$ID]), 524280);
|
||||
unset($this->chunked[$CID][3][$ID]);
|
||||
if($data === false or strlen($data) === 0){
|
||||
console("[ERROR] Invalid DEFLATEPacket for ".$this->chunked[$CID][1].":".$this->chunked[$CID][2], true, true, 2);
|
||||
|
@ -67,7 +67,7 @@ class UDPSocket{
|
||||
if($this->connected === false){
|
||||
return false;
|
||||
}
|
||||
return @socket_recvfrom($this->sock, $buf, 65535, 0, $source, $port);
|
||||
return @socket_recvfrom($this->sock, $buf, 1500, 0, $source, $port);
|
||||
}
|
||||
|
||||
public function write($data, $dest = false, $port = false){
|
||||
|
Loading…
x
Reference in New Issue
Block a user