mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Added potion display names to Potion and SplashPotion
This commit is contained in:
parent
07d97bbdeb
commit
0ec869823b
@ -281,8 +281,8 @@ class ItemFactory{
|
||||
|
||||
foreach(PotionType::getAll() as $type){
|
||||
$typeId = PotionTypeIdMap::getInstance()->toId($type);
|
||||
$this->register(new Potion(new ItemIdentifier(ItemIds::POTION, $typeId), "Potion", $type));
|
||||
$this->register(new SplashPotion(new ItemIdentifier(ItemIds::SPLASH_POTION, $typeId), "Splash Potion", $type));
|
||||
$this->register(new Potion(new ItemIdentifier(ItemIds::POTION, $typeId), $type->getDisplayName() . " Potion", $type));
|
||||
$this->register(new SplashPotion(new ItemIdentifier(ItemIds::SPLASH_POTION, $typeId), $type->getDisplayName() . " Splash Potion", $type));
|
||||
}
|
||||
|
||||
foreach(TreeType::getAll() as $type){
|
||||
|
Loading…
x
Reference in New Issue
Block a user