mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-25 07:01:20 -09:00
fix unlucky blocks
This commit is contained in:
parent
f0210d18ef
commit
3a8ac91e92
@ -73,7 +73,7 @@
|
|||||||
const oldDecorate = ModAPI.hooks.methods[BiomeDecorator_decorate];
|
const oldDecorate = ModAPI.hooks.methods[BiomeDecorator_decorate];
|
||||||
ModAPI.hooks.methods[BiomeDecorator_decorate] = function ($this, $world, $random, $biomeGenBase, $blockpos) {
|
ModAPI.hooks.methods[BiomeDecorator_decorate] = function ($this, $world, $random, $biomeGenBase, $blockpos) {
|
||||||
if (!$this.$currentWorld) {
|
if (!$this.$currentWorld) {
|
||||||
$this.$unluckyBlockGen = WorldGenMineable(ModAPI.blocks.unluckiness.getDefaultState().getRef(), 5);
|
$this.$unluckyBlockGen = WorldGenMineable(ModAPI.blocks.unluckiness.getDefaultState().getRef(), 4);
|
||||||
}
|
}
|
||||||
return oldDecorate.apply(this, [$this, $world, $random, $biomeGenBase, $blockpos]);
|
return oldDecorate.apply(this, [$this, $world, $random, $biomeGenBase, $blockpos]);
|
||||||
}
|
}
|
||||||
@ -81,7 +81,7 @@
|
|||||||
const BiomeDecorator_generateOres = ModAPI.util.getMethodFromPackage("net.minecraft.world.biome.BiomeDecorator", "generateOres");
|
const BiomeDecorator_generateOres = ModAPI.util.getMethodFromPackage("net.minecraft.world.biome.BiomeDecorator", "generateOres");
|
||||||
const oldGenerateOres = ModAPI.hooks.methods[BiomeDecorator_generateOres];
|
const oldGenerateOres = ModAPI.hooks.methods[BiomeDecorator_generateOres];
|
||||||
ModAPI.hooks.methods[BiomeDecorator_generateOres] = function ($this) {
|
ModAPI.hooks.methods[BiomeDecorator_generateOres] = function ($this) {
|
||||||
$this.$genStandardOre1(145, $this.$unluckyBlockGen || null, 0, 256);
|
$this.$genStandardOre1(105, $this.$unluckyBlockGen || null, 0, 256);
|
||||||
return oldGenerateOres.apply(this, [$this]);
|
return oldGenerateOres.apply(this, [$this]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user