Improved defaults
This commit is contained in:
parent
9dc92e5e8a
commit
c236325a51
2 changed files with 3 additions and 2 deletions
|
@ -12,11 +12,11 @@ import org.apache.commons.io.IOUtils;;
|
|||
|
||||
public class Config {
|
||||
public int logBaseXP = 0;
|
||||
public int logRandXP = 1;
|
||||
public int logRandXP = 2;
|
||||
public int cropBaseXP = 0;
|
||||
public int cropRandXP = 2;
|
||||
public int berriesBaseXP = 0;
|
||||
public int berriesRandXP = 1;
|
||||
public int berriesRandXP = 2;
|
||||
|
||||
public static final File FILE = new File("config/immersivexp.json");
|
||||
public static Config INSTANCE = null;
|
||||
|
|
|
@ -47,6 +47,7 @@ public class Events {
|
|||
if (state.getBlock() instanceof SweetBerryBushBlock && world instanceof ServerWorld) {
|
||||
int age = state.get(SweetBerryBushBlock.AGE);
|
||||
if (age == 3) {
|
||||
ImmersiveXP.LOGGER.info("Giving xp for sweet berry bush");
|
||||
Config config = Config.getInstance();
|
||||
Util.spawnXp((ServerWorld) world, hitResult.getBlockPos(), config.berriesBaseXP,
|
||||
config.berriesRandXP);
|
||||
|
|
Loading…
Reference in a new issue