mirror of
https://github.com/chylex/Hardcore-Ender-Expansion.git
synced 2025-03-14 22:15:44 +01:00
Fix broken crafting fragment item clicking
This commit is contained in:
parent
9ab7af99fb
commit
d604e3d2b4
@ -126,7 +126,7 @@ public class KnowledgeFragmentCrafting extends KnowledgeFragment{
|
||||
KnowledgeObject<?> obj = null;
|
||||
|
||||
for(int a = 0, cnt = 0, xx = x, yy = y; a < ingredients.length; a++, xx += 19){
|
||||
if (ingredients[a] != null){
|
||||
if (ingredients[a] != null && checkRect(mouseX,mouseY,xx+1,yy+1,17,17)){
|
||||
obj = KnowledgeUtils.tryGetFromItemStack(ingredients[a]);
|
||||
break;
|
||||
}
|
||||
@ -138,7 +138,9 @@ public class KnowledgeFragmentCrafting extends KnowledgeFragment{
|
||||
}
|
||||
}
|
||||
|
||||
if (checkRect(mouseX,mouseY,x+95,y+20,17,17))obj = KnowledgeObject.getObject(output);
|
||||
if (obj == null && checkRect(mouseX,mouseY,x+95,y+20,17,17)){
|
||||
obj = KnowledgeUtils.tryGetFromItemStack(output);
|
||||
}
|
||||
|
||||
if (obj != null){
|
||||
gui.showObject(obj);
|
||||
|
Loading…
Reference in New Issue
Block a user