Skip to content

Commit

Permalink
support mods with other cauldrons #44
Browse files Browse the repository at this point in the history
  • Loading branch information
cech12 committed Jan 10, 2021
1 parent e49df5f commit bdafcf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

mod_version=2.5.2
mod_version=2.5.3
minecraft_version=1.16.2+

forge_version=1.16.2-33.0.21
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import cech12.ceramicbucket.util.CeramicBucketUtils;
import net.minecraft.advancements.CriteriaTriggers;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.block.CauldronBlock;
import net.minecraft.block.IBucketPickupHandler;
import net.minecraft.block.ILiquidContainer;
Expand Down Expand Up @@ -144,7 +143,7 @@ public ActionResult<ItemStack> onItemRightClick(@Nonnull World worldIn, PlayerEn
BlockState blockstate = worldIn.getBlockState(blockpos);

//support cauldron interaction
if (blockstate.getBlock() == Blocks.CAULDRON) {
if (blockstate.getBlock() instanceof CauldronBlock) {
Fluid fluid = this.getFluid(itemstack);
CauldronBlock cauldron = (CauldronBlock) blockstate.getBlock();
int level = blockstate.get(CauldronBlock.LEVEL);
Expand Down

0 comments on commit bdafcf0

Please sign in to comment.