mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Added conversion between Items <==> Blocks
This commit is contained in:
parent
d5aa898ffe
commit
213cda27aa
6 changed files with 47 additions and 8 deletions
|
|
@ -56,7 +56,7 @@ class BlockAPI{
|
|||
$id = (int) $id;
|
||||
if(isset(Item::$class[$id])){
|
||||
$classname = Item::$class[$id];
|
||||
$i = new $classname($meta);
|
||||
$i = new $classname($meta, $count);
|
||||
}else{
|
||||
$i = new Item($id, $meta, $count);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue