mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
WATER_BUCKET, LAVA_BUCKET, MILK_BUCKET
This commit is contained in:
parent
c049278a6d
commit
992f54c696
3 changed files with 8 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue