mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
sheep will eat grass now
This commit is contained in:
parent
4a58ac2ad8
commit
0d1fb47898
6 changed files with 22 additions and 12 deletions
|
|
@ -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])){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue