Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken
2025-07-27 00:50:19 -04:00
2 changed files with 12 additions and 1 deletions

View File

@@ -1454,7 +1454,8 @@ public class Blocks{
smallHeatRedirector = new HeatConductor("small-heat-redirector"){{
requirements(Category.crafting, with(Items.surgeAlloy, 8, Items.graphite, 8));
researchCostMultiplier = 10f;
researchCostMultiplier = 2f;
researchCostMultipliers.put(Items.graphite, 7f);
group = BlockGroup.heat;
size = 2;

View File

@@ -1489,6 +1489,16 @@ public class Block extends UnlockableContent implements Senseable{
@Override
public double sense(Content content){
if(content instanceof Item item){
if(state.rules.infiniteResources) return 0;
for(ItemStack r : requirements){
if(r.item == item){
return Math.round(r.amount * state.rules.buildCostMultiplier);
}
}
return 0f;
}
return Double.NaN;
}