mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
aaa i hate sql(mobs will cause less lags)
This commit is contained in:
parent
f40fe179c1
commit
51442ed771
5 changed files with 1411 additions and 1210 deletions
|
|
@ -71,7 +71,7 @@ class PocketMinecraftServer{
|
|||
console("[INFO] Loading extra.properties...");
|
||||
$this->extraprops = new Config(DATA_PATH . "extra.properties", CONFIG_PROPERTIES, [
|
||||
"version" => "5",
|
||||
"update-mobs-on-every-tick" => false,
|
||||
"experemental-mob-features" => false,
|
||||
"enable-nether-reactor" => true,
|
||||
"enable-explosions" => true,
|
||||
"enable-rail-connection" => false,
|
||||
|
|
@ -83,9 +83,9 @@ class PocketMinecraftServer{
|
|||
"discord-webhook-url" => "none",
|
||||
"discord-bot-name" => "NostalgiaCore Logger"
|
||||
]);
|
||||
Entity::$updateOnTick = $this->extraprops->get("update-mobs-on-every-tick");
|
||||
Entity::$updateOnTick = $this->extraprops->get("experemental-mob-features");
|
||||
if(Entity::$updateOnTick){
|
||||
console("[WARNING] Mobs will update every tick. Might cause lags with a huge amount of entities.");
|
||||
console("[WARNING] Experemental mob features are enabled. Unpredictable behavior.");
|
||||
}
|
||||
Explosion::$enableExplosions = $this->extraprops->get("enable-explosions");
|
||||
RailBlock::$shouldconnectrails = $this->extraprops->get("enable-rail-connection"); //Rail connection in config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue