mirror of
https://github.com/BentoBoxWorld/Greenhouses.git
synced 2025-02-22 06:41:27 +01:00
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
|
||||
*/
|
||||
public void setRoofHopperLocation(Vector v) {
|
||||
this.roofHopperLocation = v.toLocation(getWorld());
|
||||
public void setRoofHopperLocation(@Nullable Vector v) {
|
||||
this.roofHopperLocation = v == null ? null : v.toLocation(getWorld());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user