mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27:59 +01:00
Fixed incorrect block state conversion turning water into ice
This commit is contained in:
parent
bb29d97ff3
commit
6337b86219
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ interface StateMapping extends Predicate<BlockState>, BiFunction<World, BlockSta
|
||||||
}
|
}
|
||||||
|
|
||||||
static StateMapping replaceMaterial(Material mat, Block block) {
|
static StateMapping replaceMaterial(Material mat, Block block) {
|
||||||
return build(isOf(Material.WATER), Blocks.ICE);
|
return build(isOf(mat), block);
|
||||||
}
|
}
|
||||||
static Predicate<BlockState> isOf(Material mat) {
|
static Predicate<BlockState> isOf(Material mat) {
|
||||||
return s -> s.getMaterial() == mat;
|
return s -> s.getMaterial() == mat;
|
||||||
|
|
Loading…
Reference in a new issue