set default waterlogged state to false for WaterLoggableBlockWithEntity
This commit is contained in:
parent
ff044762be
commit
5dcccdd571
2 changed files with 2 additions and 1 deletions
|
@ -219,7 +219,7 @@ test {
|
||||||
//useJUnitPlatform()
|
//useJUnitPlatform()
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.test.doFirst {Test test ->
|
tasks.test.doFirst {test ->
|
||||||
if (!test.workingDir.exists()) {
|
if (!test.workingDir.exists()) {
|
||||||
test.workingDir.mkdirs();
|
test.workingDir.mkdirs();
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,6 +24,7 @@ public abstract class WaterLoggableBlockWithEntity extends BlockWithEntity imple
|
||||||
public static final BooleanProperty WATERLOGGED = Properties.WATERLOGGED;
|
public static final BooleanProperty WATERLOGGED = Properties.WATERLOGGED;
|
||||||
protected WaterLoggableBlockWithEntity(Settings settings) {
|
protected WaterLoggableBlockWithEntity(Settings settings) {
|
||||||
super(settings);
|
super(settings);
|
||||||
|
setDefaultState(this.getStateManager().getDefaultState().with(WATERLOGGED, false));
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void appendProperties(StateManager.Builder<Block, BlockState> builder) {
|
protected void appendProperties(StateManager.Builder<Block, BlockState> builder) {
|
||||||
|
|
Loading…
Reference in a new issue