mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Block data support native oraxen ids
This commit is contained in:
parent
0e887fb2ea
commit
ca1b37dbcf
@ -141,8 +141,17 @@ public class B {
|
|||||||
if (bb != null) {
|
if (bb != null) {
|
||||||
return bb;
|
return bb;
|
||||||
}
|
}
|
||||||
|
BlockData bx = null;
|
||||||
|
|
||||||
BlockData bx = Bukkit.createBlockData(ix);
|
if(ix.startsWith("oraxen:") && Iris.linkOraxen.supported())
|
||||||
|
{
|
||||||
|
bx = Iris.linkOraxen.getBlockDataFor(ix.split("\\Q:\\E")[1]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(bx == null)
|
||||||
|
{
|
||||||
|
bx = Bukkit.createBlockData(ix);
|
||||||
|
}
|
||||||
|
|
||||||
if (bx instanceof Leaves) {
|
if (bx instanceof Leaves) {
|
||||||
((Leaves) bx).setPersistent(true);
|
((Leaves) bx).setPersistent(true);
|
||||||
@ -531,6 +540,14 @@ public class B {
|
|||||||
bt.add(v);
|
bt.add(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(Iris.linkOraxen.supported())
|
||||||
|
{
|
||||||
|
for(String i : Iris.linkOraxen.getItemTypes())
|
||||||
|
{
|
||||||
|
bt.add("oraxen:" + i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return bt.toArray(new String[0]);
|
return bt.toArray(new String[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user