mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 15:36:18 +00:00
Add camouflage system, add greenhouse door and clean up
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user