This commit is contained in:
modmuss50 2018-01-29 13:14:46 +00:00
parent b7c758c011
commit 2e115242a2

View file

@ -198,6 +198,10 @@ public class GuiSlotConfiguration {
List<Rectangle> list = new ArrayList<>();
ConfigSlotElement slotElement = slotElementMap.get(slectedSlot);
if(slotElement == null || guiBase == null){
return Collections.emptyList();
}
//I have no idea why this works, but it does. pls fix if you know how.
list.add(new Rectangle(slotElement.adjustX(guiBase, slotElement.getX()) + guiBase.getGuiLeft() - 25, slotElement.adjustY(guiBase, 0) -10, slotElement.getWidth() - 5, slotElement.getHeight() + 15));
return list;