Some fixes and utils

This commit is contained in:
Aleksey 2020-11-22 00:42:12 +03:00
parent 3b31532fea
commit 70d5a6d209
5 changed files with 216 additions and 6 deletions

View file

@ -35,7 +35,10 @@ public class InfusionPedestal extends BlockPedestal {
if (blockEntity instanceof InfusionPedestalEntity) {
pedestal = (InfusionPedestalEntity) blockEntity;
if (!pedestal.isEmpty() && pedestal.hasRitual()) {
if (pedestal.getRitual().checkRecipe()) {
if (pedestal.getRitual().hasRecipe()) {
pedestal.getRitual().stop();
return ActionResult.SUCCESS;
} else if (pedestal.getRitual().checkRecipe()) {
return ActionResult.SUCCESS;
}
}