mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +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){
|
foreach(PotionType::getAll() as $type){
|
||||||
$typeId = PotionTypeIdMap::getInstance()->toId($type);
|
$typeId = PotionTypeIdMap::getInstance()->toId($type);
|
||||||
$this->register(new Potion(new ItemIdentifier(ItemIds::POTION, $typeId), "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), "Splash Potion", $type));
|
$this->register(new SplashPotion(new ItemIdentifier(ItemIds::SPLASH_POTION, $typeId), $type->getDisplayName() . " Splash Potion", $type));
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach(TreeType::getAll() as $type){
|
foreach(TreeType::getAll() as $type){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user