Should fix broken config generation some people have been getting

This commit is contained in:
zml2008
2011-09-28 19:05:22 -07:00
parent cbc331da7d
commit ccfabd94b9
2 changed files with 20 additions and 2 deletions

View File

@ -132,6 +132,13 @@ public class BaseBlock {
&& (data == ((BaseBlock) o).data || data == -1 || ((BaseBlock) o).data == -1);
}
@Override
public int hashCode() {
int ret = type << 3;
if (data != (byte)-1) ret |= data;
return ret;
}
@Override
public String toString() {
return "BaseBlock id: " + getType() + " with damage: " + getData();