mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
Add confirm action gui.
This commit is contained in:
parent
ce96fefc79
commit
dc35d59077
7 changed files with 96 additions and 14 deletions
|
|
@ -73,18 +73,18 @@ abstract class AbstractMaterialGroup(private val name: String) {
|
|||
// Test inner material
|
||||
val matIterator = includedMaterial.iterator()
|
||||
while(matIterator.hasNext()){
|
||||
val material = matIterator.next();
|
||||
val material = matIterator.next()
|
||||
if(material.isAir) continue
|
||||
return material;
|
||||
return material
|
||||
}
|
||||
// Test included group representative material
|
||||
val groupIterator = getGroups().iterator()
|
||||
while (groupIterator.hasNext()){
|
||||
val groupMat = groupIterator.next().getRepresentativeMaterial()
|
||||
if(groupMat.isAir) continue
|
||||
return groupMat;
|
||||
return groupMat
|
||||
}
|
||||
return Material.PAPER;
|
||||
return Material.PAPER
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue