Skip to content

Commit 63be537

Browse files
committed
Fix check
1 parent 73d402c commit 63be537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/forge-1.15.2/templates/plant/plant.java.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public class ${name}Block extends ${getPlantClass(data.plantType)}Block
283283
@Override public void randomTick(BlockState blockstate, ServerWorld world, BlockPos pos, Random random) {
284284
<#if data.plantType == "growapable">
285285
<#if data.isWaterloggable()>
286-
boolean flag = world.getBlockState(pos.up()).isIn(Blocks.WATER);
286+
boolean flag = world.getBlockState(pos.up()).getBlock() == Blocks.WATER;
287287
</#if>
288288
if (world.isAirBlock(pos.up()) <#if data.isWaterloggable()>|| flag</#if>) {
289289
int i = 1;

0 commit comments

Comments
 (0)