The patch for Arig to replace its glass with K2's glass misses three of the technology unlocks.
data.raw["technology"]["planetaris-compression"].research_trigger = {
type = "craft-item",
item = "glass",
count = 50
}
data.raw.technology["condensing-agricultural-tower"].research_trigger = {
type = "craft-item",
item = "glass",
count = 25
}
data.raw.technology["planetaris-raw-diamond-production"].research_trigger = {
type = "craft-item",
item = "kr-quartz",
count = 50
}
I am sure you would probably want to just update data.item.replace_all to handle it.