mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-26 04:25:13 +01:00
Fix issue with Entity and Block selecting GUIs.
Items were not selected unless player use right click. Not it will work correctly.
This commit is contained in:
parent
e0610c1800
commit
1a70ee3ad8
@ -191,9 +191,12 @@ public class SelectBlocksGUI
|
||||
{
|
||||
this.selectedMaterials.remove(material);
|
||||
}
|
||||
|
||||
panel.getInventory().setItem(slot, this.createMaterialButton(material).getItem());
|
||||
}
|
||||
else
|
||||
{
|
||||
this.selectedMaterials.add(material);
|
||||
this.consumer.accept(true, this.selectedMaterials);
|
||||
}
|
||||
|
||||
|
@ -184,9 +184,12 @@ public class SelectEntityGUI
|
||||
{
|
||||
this.selectedEntities.remove(entity);
|
||||
}
|
||||
|
||||
panel.getInventory().setItem(slot, this.createEntityButton(entity).getItem());
|
||||
}
|
||||
else
|
||||
{
|
||||
this.selectedEntities.add(entity);
|
||||
this.consumer.accept(true, this.selectedEntities);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user