File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/main/java/mekanism/common/entity Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 121121import net .minecraft .world .level .ChunkPos ;
122122import net .minecraft .world .level .Level ;
123123import net .minecraft .world .level .gameevent .GameEvent ;
124+ import net .minecraft .world .level .pathfinder .PathType ;
124125import net .minecraft .world .level .portal .PortalInfo ;
125126import net .minecraft .world .phys .HitResult ;
126127import net .minecraft .world .phys .Vec3 ;
@@ -201,6 +202,7 @@ private static <T> EntityDataAccessor<T> define(EntityDataSerializer<T> dataSeri
201202 public EntityRobit (EntityType <EntityRobit > type , Level world ) {
202203 super (type , world );
203204 getNavigation ().setCanFloat (false );
205+ setPathfindingMalus (PathType .UNPASSABLE_RAIL , 0.0F );
204206 setCustomNameVisible (true );
205207 recipeCacheLookupMonitor = new RecipeCacheLookupMonitor <>(this );
206208 // Choose a random offset to check for all errors. We do this to ensure that not every tile tries to recheck errors for every
You can’t perform that action at this time.
0 commit comments