Setting hopper to null is valid

Fixes https://github.com/BentoBoxWorld/Greenhouses/issues/75
This commit is contained in:
tastybento 2021-02-13 10:27:57 -08:00
parent 54f956cf23
commit 69818923fc
1 changed files with 2 additions and 2 deletions

View File

@ -156,8 +156,8 @@ public class Greenhouse implements DataObject {
/**
* @param v the roofHopperLocation to set
*/
public void setRoofHopperLocation(Vector v) {
this.roofHopperLocation = v.toLocation(getWorld());
public void setRoofHopperLocation(@Nullable Vector v) {
this.roofHopperLocation = v == null ? null : v.toLocation(getWorld());
}
/**