WATER_BUCKET, LAVA_BUCKET, MILK_BUCKET

This commit is contained in:
GameHerobrine 2022-07-12 00:03:31 +03:00
parent c049278a6d
commit 992f54c696
3 changed files with 8 additions and 2 deletions

View file

@ -240,6 +240,10 @@ class BlockAPI{
}
if(defined(strtoupper($b[0]))){
$explodedString = explode(":", constant(strtoupper($b[0])));
if(count($explodedString) == 2){
$meta = (int) $explodedString[1];
}
$item = BlockAPI::getItem(constant(strtoupper($b[0])), $meta);
if($item->getID() === AIR and strtoupper($b[0]) !== "AIR"){
$item = BlockAPI::getItem(((int) $b[0]) & 0xFFFF, $meta);