mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Remove useless code (#4590)
This commit is contained in:
parent
d8f0fd0a7e
commit
eb0cf52d81
@ -74,10 +74,6 @@ final class ItemTranslator{
|
|||||||
throw new AssumptionFailedError("Invalid item table format");
|
throw new AssumptionFailedError("Invalid item table format");
|
||||||
}
|
}
|
||||||
|
|
||||||
$legacyStringToIntMapRaw = file_get_contents(Path::join(\pocketmine\BEDROCK_DATA_PATH, 'item_id_map.json'));
|
|
||||||
if($legacyStringToIntMapRaw === false){
|
|
||||||
throw new AssumptionFailedError("Missing required resource file");
|
|
||||||
}
|
|
||||||
$legacyStringToIntMap = LegacyItemIdToStringIdMap::getInstance();
|
$legacyStringToIntMap = LegacyItemIdToStringIdMap::getInstance();
|
||||||
|
|
||||||
/** @phpstan-var array<string, int> $simpleMappings */
|
/** @phpstan-var array<string, int> $simpleMappings */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user