Skip to content

Commit

Permalink
Setting hopper to null is valid
Browse files Browse the repository at this point in the history
Fixes #75
  • Loading branch information
tastybento committed Feb 13, 2021
1 parent 54f956c commit 6981892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/world/bentobox/greenhouses/data/Greenhouse.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ public void setOriginalBiome(Biome originalBiome) {
/**
* @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());
}

/**
Expand Down

0 comments on commit 6981892

Please sign in to comment.