GregTechCEu Modern

GregTechCEu Modern

6M Downloads

Unintentional recursion in LongInputWidget

BobVonBob opened this issue ยท 1 comments

commented

@Override
protected Long clamp(Long value, Long min, Long max) {
return clamp(value, min, max);
}
public static long clamp(long value, long min, long max) {
return Math.max(min, Math.min(max, value));
}

The first clamp calls itself instead of the seemingly intended second clamp function, causing a stack overflow. Found while messing with UV pumps.

Log: https://mclo.gs/mqRuQg8

commented

Fixed in the latest build