mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
This commit is contained in:
parent
723ae9eca0
commit
f1c571a528
@ -125,7 +125,7 @@ final class WaterCauldron extends FillableCauldron{
|
|||||||
$item->pop();
|
$item->pop();
|
||||||
}elseif($item instanceof Potion || $item instanceof SplashPotion){ //TODO: lingering potion
|
}elseif($item instanceof Potion || $item instanceof SplashPotion){ //TODO: lingering potion
|
||||||
if($item->getType()->equals(PotionType::WATER())){
|
if($item->getType()->equals(PotionType::WATER())){
|
||||||
$this->addFillLevels(self::WATER_BOTTLE_FILL_AMOUNT, $item, VanillaItems::GLASS_BOTTLE(), $returnedItems);
|
$this->setCustomWaterColor(null)->addFillLevels(self::WATER_BOTTLE_FILL_AMOUNT, $item, VanillaItems::GLASS_BOTTLE(), $returnedItems);
|
||||||
}else{
|
}else{
|
||||||
$this->mix($item, VanillaItems::GLASS_BOTTLE(), $returnedItems);
|
$this->mix($item, VanillaItems::GLASS_BOTTLE(), $returnedItems);
|
||||||
}
|
}
|
||||||
@ -169,7 +169,7 @@ final class WaterCauldron extends FillableCauldron{
|
|||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
match($item->getTypeId()){
|
match($item->getTypeId()){
|
||||||
ItemTypeIds::WATER_BUCKET => $this->addFillLevels(self::MAX_FILL_LEVEL, $item, VanillaItems::BUCKET(), $returnedItems),
|
ItemTypeIds::WATER_BUCKET => $this->setCustomWaterColor(null)->addFillLevels(self::MAX_FILL_LEVEL, $item, VanillaItems::BUCKET(), $returnedItems),
|
||||||
ItemTypeIds::BUCKET => $this->removeFillLevels(self::MAX_FILL_LEVEL, $item, VanillaItems::WATER_BUCKET(), $returnedItems),
|
ItemTypeIds::BUCKET => $this->removeFillLevels(self::MAX_FILL_LEVEL, $item, VanillaItems::WATER_BUCKET(), $returnedItems),
|
||||||
ItemTypeIds::GLASS_BOTTLE => $this->removeFillLevels(self::WATER_BOTTLE_FILL_AMOUNT, $item, VanillaItems::POTION()->setType(PotionType::WATER()), $returnedItems),
|
ItemTypeIds::GLASS_BOTTLE => $this->removeFillLevels(self::WATER_BOTTLE_FILL_AMOUNT, $item, VanillaItems::POTION()->setType(PotionType::WATER()), $returnedItems),
|
||||||
ItemTypeIds::LAVA_BUCKET, ItemTypeIds::POWDER_SNOW_BUCKET => $this->mix($item, VanillaItems::BUCKET(), $returnedItems),
|
ItemTypeIds::LAVA_BUCKET, ItemTypeIds::POWDER_SNOW_BUCKET => $this->mix($item, VanillaItems::BUCKET(), $returnedItems),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user