Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -1454,7 +1454,8 @@ public class Blocks{
|
|||||||
smallHeatRedirector = new HeatConductor("small-heat-redirector"){{
|
smallHeatRedirector = new HeatConductor("small-heat-redirector"){{
|
||||||
requirements(Category.crafting, with(Items.surgeAlloy, 8, Items.graphite, 8));
|
requirements(Category.crafting, with(Items.surgeAlloy, 8, Items.graphite, 8));
|
||||||
|
|
||||||
researchCostMultiplier = 10f;
|
researchCostMultiplier = 2f;
|
||||||
|
researchCostMultipliers.put(Items.graphite, 7f);
|
||||||
|
|
||||||
group = BlockGroup.heat;
|
group = BlockGroup.heat;
|
||||||
size = 2;
|
size = 2;
|
||||||
|
|||||||
@@ -1489,6 +1489,16 @@ public class Block extends UnlockableContent implements Senseable{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public double sense(Content content){
|
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;
|
return Double.NaN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user