set default waterlogged state to false for WaterLoggableBlockWithEntity

This commit is contained in:
CreepyCre 2021-06-18 01:29:38 +02:00
parent ff044762be
commit 5dcccdd571
2 changed files with 2 additions and 1 deletions

View file

@ -219,7 +219,7 @@ test {
//useJUnitPlatform()
}
tasks.test.doFirst {Test test ->
tasks.test.doFirst {test ->
if (!test.workingDir.exists()) {
test.workingDir.mkdirs();
}

View file

@ -24,6 +24,7 @@ public abstract class WaterLoggableBlockWithEntity extends BlockWithEntity imple
public static final BooleanProperty WATERLOGGED = Properties.WATERLOGGED;
protected WaterLoggableBlockWithEntity(Settings settings) {
super(settings);
setDefaultState(this.getStateManager().getDefaultState().with(WATERLOGGED, false));
}
@Override
protected void appendProperties(StateManager.Builder<Block, BlockState> builder) {