mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-15 19:34:49 +00:00
IPos objects now use double values in calculations for distance, addition, cross product, etc.
This commit is contained in:
1 parent
9de16f1eef
commit
b592bb5d5e
7 files changed
+58
-43
No files matched your search
@@ -44,7 +44,7 @@ public class ScriptTileEntity<T extends TileEntity> implements ITileEntity {
|
||||
}
|
||||
|
||||
public double getDistanceFrom(IPos pos){
|
||||
return this.getDistanceFrom(pos.getX(),pos.getY(),pos.getZ());
|
||||
return this.getDistanceFrom(pos.getXD(),pos.getYD(),pos.getZD());
|
||||
}
|
||||
|
||||
public IBlock getBlockType(){
|
||||
|
||||
Reference in new issue
Block a user