mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
(Splash)Potion: do not assume that META == potion ID
it probably will be, but meta might not be accessible anymore soon.
This commit is contained in:
@@ -252,8 +252,8 @@ class ItemFactory{
|
||||
}
|
||||
|
||||
foreach(Potion::ALL as $type){
|
||||
$this->register(new Potion(ItemIds::POTION, $type, "Potion"));
|
||||
$this->register(new SplashPotion(ItemIds::SPLASH_POTION, $type, "Splash Potion"));
|
||||
$this->register(new Potion(ItemIds::POTION, $type, "Potion", $type));
|
||||
$this->register(new SplashPotion(ItemIds::SPLASH_POTION, $type, "Splash Potion", $type));
|
||||
}
|
||||
|
||||
foreach(TreeType::getAll() as $type){
|
||||
|
||||
Reference in New Issue
Block a user