Split out the configuration of engine modes 1 and 2 to eliminate the block lag seen when mining stone or wood and using engine mode 1.

Now we maintain a new list of blocks to replace with ores in engine mode 2, to ensure that we only update when players mine blocks that are potentially not an ore. We could perhaps even elimate this slight lag from mode 2 by reducing the need for calling update(x,y,z)

By: md_5 <git@md-5.net>
This commit is contained in:
Spigot
2013-12-13 11:28:47 +11:00
parent 9f9133e482
commit 9a3140c935
2 changed files with 36 additions and 33 deletions

View File

@@ -1,4 +1,4 @@
From c43f6a61f267c258f692714f79098b096fc8c176 Mon Sep 17 00:00:00 2001
From 64d8f6301c45ffcaa96adc2efaa76226dc944bea Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au>
Date: Sun, 7 Jul 2013 09:32:53 +1000
Subject: [PATCH] Spigot Configuration
@@ -94,7 +94,7 @@ index 15a5a5d..93e1782 100644
diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
new file mode 100644
index 0000000..e7f6401
index 0000000..3dfe4ed
--- /dev/null
+++ b/src/main/java/org/spigotmc/SpigotConfig.java
@@ -0,0 +1,120 @@
@@ -144,8 +144,8 @@ index 0000000..e7f6401
+
+ commands = new HashMap<String, Command>();
+
+ version = getInt( "config-version", 4 );
+ set( "config-version", 4 );
+ version = getInt( "config-version", 5 );
+ set( "config-version", 5 );
+ readConfig( SpigotConfig.class, null );
+ }
+