Skip to content

Commit

Permalink
Merge pull request #334 from wielandb/hedge-fix
Browse files Browse the repository at this point in the history
Make leaves persistent to stop hedges from decaying
  • Loading branch information
louis-e authored Jan 25, 2025
2 parents 33144a1 + c71cd11 commit 938a2d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/block_definitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ impl Block {

pub fn properties(&self) -> Option<Value> {
match self.id {
49 => Some(Value::Compound({
let mut map: HashMap<String, Value> = HashMap::new();
map.insert("persistent".to_string(), Value::String("true".to_string()));
map
})),
105 => Some(Value::Compound({
let mut map: HashMap<String, Value> = HashMap::new();
map.insert("age".to_string(), Value::String("7".to_string()));
Expand Down

0 comments on commit 938a2d7

Please sign in to comment.