瀏覽代碼

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,7 +70,7 @@ class AntPutBrainPart(TransportBrainPart):
70 70
     @classmethod
71 71
     def _position_is_enought_place(cls, context, position):
72 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 74
             return True
75 75
         return False
76 76