Add camouflage system, add greenhouse door and clean up

This commit is contained in:
Nedelosk committed 2016-03-13 21:00:45 +01:00
1 parent 7238886d00
commit bde92c4afc
158 files changed
+1476 -491

No files matched your search

@@ -96,7 +96,7 @@ public class BlockEngine extends BlockBase<BlockTypeEngine> {
AxisAlignedBB boundingBox = boundingBoxBase.offset(pos.getX(), pos.getY(), pos.getZ());
MovingObjectPosition intersection = boundingBox.calculateIntercept(start, end);
if (intersection != null) {
if (nearestIntersection == null || (intersection.hitVec.distanceTo(start) < nearestIntersection.hitVec.distanceTo(start))) {
if (nearestIntersection == null || intersection.hitVec.distanceTo(start) < nearestIntersection.hitVec.distanceTo(start)) {
nearestIntersection = intersection;
}
}