Fixed beds generating with water on them

This commit is contained in:
Sollace 2023-11-09 16:25:24 +00:00
parent d3821f1c7c
commit 5dbff11d7a
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -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)));
} }
} }