Made the world info possible to turn off.
By: totokaka <ttotokaka@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 4861d544fcc01c69c76bdc859ac8f380d6ae3b2d Mon Sep 17 00:00:00 2001
|
||||
From c5ff374f643fb217cf6ce5424ee9135edae5e0ac Mon Sep 17 00:00:00 2001
|
||||
From: Aikar <aikar@aikar.co>
|
||||
Date: Sun, 3 Feb 2013 05:10:21 -0500
|
||||
Subject: [PATCH] Entity Activation Range
|
||||
@@ -124,10 +124,10 @@ index 522320a..de0b6c6 100644
|
||||
entity.V = entity.locY;
|
||||
entity.W = entity.locZ;
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
||||
index 53be4e1..c8a662b 100644
|
||||
index 0d724cd..cfd08bf 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
||||
@@ -102,8 +102,14 @@ public class CraftWorld implements World {
|
||||
@@ -103,9 +103,15 @@ public class CraftWorld implements World {
|
||||
treeGrowthModifier = configuration.getInt("world-settings.default.tree-growth-modifier", treeGrowthModifier);
|
||||
mushroomGrowthModifier = configuration.getInt("world-settings.default.mushroom-growth-modifier", mushroomGrowthModifier);
|
||||
|
||||
@@ -136,13 +136,14 @@ index 53be4e1..c8a662b 100644
|
||||
+ monsterEntityActivationRange = configuration.getInt("world-settings.default.entity-activation-range-monsters");
|
||||
+
|
||||
//override defaults with world specific, if they exist
|
||||
info = configuration.getBoolean("world-settings." + name + ".info", info);
|
||||
growthPerTick = configuration.getInt("world-settings." + name + ".growth-chunks-per-tick", growthPerTick);
|
||||
+ itemMergeRadius = configuration.getDouble("world-settings." + name + ".item-merge-radius", itemMergeRadius);
|
||||
+ expMergeRadius = configuration.getDouble("world-settings." + name + ".exp-merge-radius", expMergeRadius);
|
||||
randomLightingUpdates = configuration.getBoolean("world-settings." + name + ".random-light-updates", randomLightingUpdates);
|
||||
mobSpawnRange = configuration.getInt("world-settings." + name + ".mob-spawn-range", mobSpawnRange);
|
||||
aggregateTicks = Math.max(1, configuration.getInt("world-settings." + name + ".aggregate-chunkticks", aggregateTicks));
|
||||
@@ -123,6 +129,10 @@ public class CraftWorld implements World {
|
||||
@@ -125,6 +131,10 @@ public class CraftWorld implements World {
|
||||
|
||||
obfuscated = !world.getServer().orebfuscatorDisabledWorlds.contains(name);
|
||||
|
||||
@@ -150,10 +151,10 @@ index 53be4e1..c8a662b 100644
|
||||
+ animalEntityActivationRange = configuration.getInt("world-settings." + name + ".entity-activation-range-animals", animalEntityActivationRange);
|
||||
+ monsterEntityActivationRange = configuration.getInt("world-settings." + name + ".entity-activation-range-monsters", monsterEntityActivationRange);
|
||||
+
|
||||
if (!info) return;
|
||||
server.getLogger().info("-------------- Spigot ----------------");
|
||||
server.getLogger().info("-------- World Settings For [" + name + "] --------");
|
||||
server.getLogger().info("Growth Per Chunk: " + growthPerTick);
|
||||
@@ -138,6 +148,7 @@ public class CraftWorld implements World {
|
||||
@@ -141,6 +151,7 @@ public class CraftWorld implements World {
|
||||
server.getLogger().info("Mushroom Growth Modifier: " + mushroomGrowthModifier);
|
||||
server.getLogger().info("View distance: " + viewDistance);
|
||||
server.getLogger().info("Oreobfuscator: " + obfuscated);
|
||||
@@ -161,7 +162,7 @@ index 53be4e1..c8a662b 100644
|
||||
server.getLogger().info("-------------------------------------------------");
|
||||
// Spigot end
|
||||
}
|
||||
@@ -158,6 +169,10 @@ public class CraftWorld implements World {
|
||||
@@ -161,6 +172,10 @@ public class CraftWorld implements World {
|
||||
public int sugarGrowthModifier = 100;
|
||||
public int treeGrowthModifier = 100;
|
||||
public int mushroomGrowthModifier = 100;
|
||||
@@ -426,7 +427,7 @@ index bbb6368..d8f73ad 100644
|
||||
public static final HashMap<String, CustomTimingsHandler> tileEntityTypeTimingMap = new HashMap<String, CustomTimingsHandler>();
|
||||
public static final HashMap<String, CustomTimingsHandler> pluginTaskTimingMap = new HashMap<String, CustomTimingsHandler>();
|
||||
diff --git a/src/main/resources/configurations/bukkit.yml b/src/main/resources/configurations/bukkit.yml
|
||||
index f0d731f..b741e37 100644
|
||||
index a63dc22..5822e41 100644
|
||||
--- a/src/main/resources/configurations/bukkit.yml
|
||||
+++ b/src/main/resources/configurations/bukkit.yml
|
||||
@@ -46,6 +46,9 @@ world-settings:
|
||||
@@ -436,9 +437,9 @@ index f0d731f..b741e37 100644
|
||||
+ entity-activation-range-animals: 32
|
||||
+ entity-activation-range-monsters: 32
|
||||
+ entity-activation-range-misc: 16
|
||||
info: true
|
||||
world:
|
||||
growth-chunks-per-tick: 1000
|
||||
world_nether:
|
||||
--
|
||||
1.8.1-rc2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user