Преглед изворни кода

fix ant.put.max_objects_at_same_position

Bastien Sevajol пре 9 година
родитељ
комит
b1beefbefd
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      intelligine/simulation/object/brain/part/transport/AntPutBrainPart.py

+ 1 - 1
intelligine/simulation/object/brain/part/transport/AntPutBrainPart.py Прегледај датотеку

70
     @classmethod
70
     @classmethod
71
     def _position_is_enought_place(cls, context, position):
71
     def _position_is_enought_place(cls, context, position):
72
         count_obj_here = len(context.metas.list.get(POSITIONS, position, allow_empty=True))
72
         count_obj_here = len(context.metas.list.get(POSITIONS, position, allow_empty=True))
73
-        if count_obj_here <= Core.get_configuration_manager().get('ant.put.max_objects_at_same_position', 5):
73
+        if count_obj_here < Core.get_configuration_manager().get('ant.put.max_objects_at_same_position', 5):
74
             return True
74
             return True
75
         return False
75
         return False
76
 
76