mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Add a message for movement reverting
This commit is contained in:
parent
9004417456
commit
2d3b8845fd
@ -1350,6 +1350,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
$revert = false;
|
$revert = false;
|
||||||
|
|
||||||
if(($distanceSquared / ($tickDiff ** 2)) > 100){
|
if(($distanceSquared / ($tickDiff ** 2)) > 100){
|
||||||
|
$this->server->getLogger()->warning($this->getName() . " moved too fast, reverting movement");
|
||||||
$revert = true;
|
$revert = true;
|
||||||
}else{
|
}else{
|
||||||
if($this->chunk === null or !$this->chunk->isGenerated()){
|
if($this->chunk === null or !$this->chunk->isGenerated()){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user