Setting hopper to null is valid
Fixes https://github.com/BentoBoxWorld/Greenhouses/issues/75
This commit is contained in:
parent
54f956cf23
commit
69818923fc
|
@ -156,8 +156,8 @@ public class Greenhouse implements DataObject {
|
||||||
/**
|
/**
|
||||||
* @param v the roofHopperLocation to set
|
* @param v the roofHopperLocation to set
|
||||||
*/
|
*/
|
||||||
public void setRoofHopperLocation(Vector v) {
|
public void setRoofHopperLocation(@Nullable Vector v) {
|
||||||
this.roofHopperLocation = v.toLocation(getWorld());
|
this.roofHopperLocation = v == null ? null : v.toLocation(getWorld());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue