v0.9.4: fixed dew drops still stacking in some cases
This commit is contained in:
parent
448cc0a23c
commit
ee2eea4459
|
@ -114,8 +114,18 @@ public class Dewdrop extends Item {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
//max of one dew in a stack
|
//max of one dew in a stack
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Item merge( Item other ){
|
||||||
|
if (isSimilar( other )){
|
||||||
|
quantity = 1;
|
||||||
|
other.quantity = 0;
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Item quantity(int value) {
|
public Item quantity(int value) {
|
||||||
quantity = Math.min( value, 1);
|
quantity = Math.min( value, 1);
|
||||||
return this;
|
return this;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user