mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27:59 +01:00
Fixed beds generating with water on them
This commit is contained in:
parent
d3821f1c7c
commit
5dbff11d7a
1 changed files with 1 additions and 4 deletions
|
@ -37,11 +37,8 @@ public class WaterLoggingManager<O, S extends State<O, S>> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void getDefaultState(O owner, CallbackInfoReturnable<S> info) {
|
public void getDefaultState(O owner, CallbackInfoReturnable<S> info) {
|
||||||
if (owner instanceof BedBlock) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (appliesTo(owner, info.getReturnValue())) {
|
if (appliesTo(owner, info.getReturnValue())) {
|
||||||
info.setReturnValue(info.getReturnValue().with(Properties.WATERLOGGED, true));
|
info.setReturnValue(info.getReturnValue().with(Properties.WATERLOGGED, !(owner instanceof BedBlock)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue