Fix order of absolute/relative point conversion
This commit is contained in:
@@ -84,10 +84,10 @@ public abstract class AbstractGuiContainer<T extends AbstractGuiContainer<T>>
|
|||||||
Pair<ReadablePoint, ReadableDimension> pair = layedOutElements.get(element);
|
Pair<ReadablePoint, ReadableDimension> pair = layedOutElements.get(element);
|
||||||
checkState(pair != null, "Element " + element + " not part of " + this);
|
checkState(pair != null, "Element " + element + " not part of " + this);
|
||||||
ReadablePoint pos = pair.getKey();
|
ReadablePoint pos = pair.getKey();
|
||||||
point.translate(-pos.getX(), -pos.getY());
|
|
||||||
if (getContainer() != null) {
|
if (getContainer() != null) {
|
||||||
getContainer().convertFor(this, point);
|
getContainer().convertFor(this, point);
|
||||||
}
|
}
|
||||||
|
point.translate(-pos.getX(), -pos.getY());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user