Fix hashCode() of RegionSign

This commit is contained in:
Thijs Wiefferink 2018-01-26 14:33:27 +01:00
parent 8474edd29d
commit 741bbd879f
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package me.wiefferink.areashop.features.signs;
import com.google.common.base.Objects;
import me.wiefferink.areashop.AreaShop;
import me.wiefferink.areashop.regions.GeneralRegion;
import me.wiefferink.areashop.tools.Utils;
@ -244,6 +245,6 @@ public class RegionSign {
@Override
public int hashCode() {
return key.hashCode();
return Objects.hashCode(key, getRegion().getName());
}
}