sheep will eat grass now

This commit is contained in:
GameHerobrine 2023-04-03 23:40:59 +03:00
parent 4a58ac2ad8
commit 0d1fb47898
6 changed files with 22 additions and 12 deletions

View file

@ -298,12 +298,10 @@ class BlockAPI{
if($player instanceof Player){
$item = self::fromString(nullsafe($args[1], ""));
if(($player->gamemode & 0x01) === 0x01){
$output .= "Player is in creative mode.";
break;
return "Player is in creative mode.";
}
if($item->getID() === 0){
$output .= "You cannot give an air block to a player.";
break;
return "You cannot give an air block to a player.";
}
if(!isset($args[2])){