mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +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;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return CommandSender
|
||||
*/
|
||||
public function getSender(){
|
||||
return $this->sender;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
|
@ -215,7 +215,7 @@ abstract class BaseChunk implements Chunk{
|
||||
$column = $this->sections[$Y]->getBlockIdColumn($x, $z);
|
||||
for($y = 15; $y >= 0; --$y){
|
||||
if($column{$y} !== "\x00"){
|
||||
return $y + $Y << 4;
|
||||
return $y + ($Y << 4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user