mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Support 0.7.0
This commit is contained in:
parent
048dfd2e98
commit
0fefb140f4
21 changed files with 48 additions and 44 deletions
|
|
@ -665,7 +665,7 @@ class BlockAPI{
|
|||
|
||||
private function cancelAction(Block $block, Player $player, $send = true){
|
||||
$player->addBlockUpdateIntoQueue($block->x, $block->y, $block->z, $block->getID(), $block->getMetadata());
|
||||
if($send === true && $player->PROTOCOL >= ProtocolInfo12::CURRENT_PROTOCOL_12){
|
||||
if($send === true && $player->PROTOCOL >= ProtocolInfo12::CURRENT_PROTOCOL_11){
|
||||
$player->sendInventory();
|
||||
}
|
||||
return false;
|
||||
|
|
@ -859,7 +859,7 @@ class BlockAPI{
|
|||
}
|
||||
|
||||
public static function convertHighItemIdsToOldItemIds(int $protocolId, int $itemId, int $metaData = 0) : int{ //TODO Id metadata
|
||||
if ($protocolId >= ProtocolInfo12::CURRENT_PROTOCOL_12) {
|
||||
if ($protocolId >= ProtocolInfo12::CURRENT_PROTOCOL_11) {
|
||||
return $itemId;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue