Permalink
Browse files

Fixed custom drops without regions.

  • Loading branch information...
me4502 committed Dec 7, 2016
1 parent 0f9ee92 commit d6ab9dbd9a06b69a22dc014951fb97f02e8e9ec7
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/main/java/com/sk89q/craftbook/mechanics/drops/CustomDropDefinition.java
@@ -45,6 +45,9 @@ public boolean getAppend() {
public void setRegions(List<String> regions) {
this.regions = regions;
+ if (this.regions.isEmpty()) {
+ this.regions = null;
+ }
}
public DropReward[] getRewards() {

0 comments on commit d6ab9db

Please sign in to comment.