SPIGOT-4666: Force parameter in HumanEntity#sleep
Also moved the application of the force parameter inside EntityHuman, to no longer allow bypassing of very essential checks. By: blablubbabc <lukas@wirsindwir.de>
This commit is contained in:
@@ -168,7 +168,7 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (getHandle().a(blockposition) != EntityHuman.EnumBedResult.OK) {
|
||||
if (getHandle().a(blockposition, force) != EntityHuman.EnumBedResult.OK) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user