commit
98296d91ee
@ -66,8 +66,9 @@ function on_sensor_enter(index, oid)
|
||||
local stack = item.stack_size(dropitem.id)
|
||||
local sum = dropitem.count + odrop.count
|
||||
if sum <= stack then
|
||||
dropitem.count = sum
|
||||
other:despawn()
|
||||
dropitem.count = 0
|
||||
odrop.count = sum
|
||||
entity:despawn()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -435,9 +435,10 @@ dv::value BasicParser<CharT>::parseNumber(int sign) {
|
||||
static_cast<int64_t>(std::log10(afterdot) + 1)
|
||||
)
|
||||
);
|
||||
c = source[pos];
|
||||
|
||||
double dvalue = (value + (afterdot / (double)expo));
|
||||
if (hasNext()){
|
||||
c = source[pos];
|
||||
if (c == 'e' || c == 'E') {
|
||||
pos++;
|
||||
int s = 1;
|
||||
@ -449,6 +450,7 @@ dv::value BasicParser<CharT>::parseNumber(int sign) {
|
||||
}
|
||||
return sign * dvalue * power(10.0, s * parseSimpleInt(10));
|
||||
}
|
||||
}
|
||||
return sign * dvalue;
|
||||
}
|
||||
return sign * value;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user