mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 11:18:52 +00:00
Added ServerCommandEvent::getSender()
This commit is contained in:
parent
a4593d4668
commit
c775c3905d
@ -50,6 +50,13 @@ class ServerCommandEvent extends ServerEvent implements Cancellable{
|
|||||||
$this->command = $command;
|
$this->command = $command;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return CommandSender
|
||||||
|
*/
|
||||||
|
public function getSender(){
|
||||||
|
return $this->sender;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
@ -215,7 +215,7 @@ abstract class BaseChunk implements Chunk{
|
|||||||
$column = $this->sections[$Y]->getBlockIdColumn($x, $z);
|
$column = $this->sections[$Y]->getBlockIdColumn($x, $z);
|
||||||
for($y = 15; $y >= 0; --$y){
|
for($y = 15; $y >= 0; --$y){
|
||||||
if($column{$y} !== "\x00"){
|
if($column{$y} !== "\x00"){
|
||||||
return $y + $Y << 4;
|
return $y + ($Y << 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user