mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
carried_grass & carried_leaves
This commit is contained in:
parent
e992aa4aff
commit
72dc07458c
4 changed files with 26 additions and 0 deletions
|
|
@ -860,6 +860,12 @@ class BlockAPI{
|
|||
|
||||
public static function convertHighItemIdsToOldItemIds(int $protocolId, int $itemId, int $metaData = 0) : int{ //TODO Id metadata
|
||||
if ($protocolId >= ProtocolInfo12::CURRENT_PROTOCOL_11) {
|
||||
if($itemId === LEAVES_CARRIED || $itemId === GRASS_CARRIED){
|
||||
return match ($itemId){
|
||||
LEAVES_CARRIED => LEAVES,
|
||||
GRASS_CARRIED => GRASS,
|
||||
};
|
||||
}
|
||||
return $itemId;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue