Skip to content

Nano Cultivators not sowing when map temperature exceeds plant requirements #899

@k4mcz4

Description

@k4mcz4

Describe the bug

Nano Cultivators are not sowing plants on maps with extreme temperatures that would go beyond plant requirements and ignore the room temperature where the cultivator is located.

To Reproduce
Reproducibility: Yes
Steps to reproduce the behavior:

  1. Have a map with extremely low temperatures like Ice Sheet
  2. Install a nano cultivator in a room with sun lamps and sufficient temperature for the plant to grow

Expected behavior
Nano Cultivator sows a plant

Actual Behavior
Nano Cultivator is not sowing a plant

Additional context
It has been identified that the issue lies in the method TryPlantNewin the Building_Cultivator class.
The condition is checked using the plant's vanilla CanEverPlantAt method with two parameters: coordinates and map.
The method definition also contains two default parameters:

bool canWipePlantsExceptTree = false
bool checkMapTemperature = true

If checkMapTemperature is explicitly set to false, Nano cultivator starts working

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions