mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-21 07:46:55 +00:00
Fix axis alignedbb
This commit is contained in:
1 parent
db7681676e
commit
f7bd48cc9a
1 file changed
+5
@@ -1,6 +1,7 @@
|
||||
package com.volmit.iris.util;
|
||||
|
||||
import com.volmit.iris.object.IrisPosition;
|
||||
import org.bukkit.World;
|
||||
|
||||
public class AxisAlignedBB
|
||||
{
|
||||
@@ -65,4 +66,8 @@ public class AxisAlignedBB
|
||||
{
|
||||
return new IrisPosition((int)xa, (int)ya, (int)za);
|
||||
}
|
||||
|
||||
public Cuboid toCuboid(World world) {
|
||||
return new Cuboid(min().toLocation(world), max().toLocation(world));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user