Don't make a new metadata value for every block every time.

This commit is contained in:
GJ
2013-02-23 00:29:25 -05:00
parent 7e1eeb66d6
commit 8d16c06739
3 changed files with 12 additions and 9 deletions

View File

@@ -94,6 +94,10 @@ public class mcMMO extends JavaPlugin {
public static FixedMetadataValue entityMetadata;
public final static String entityMetadataKey = "mcMMO: Spawned Entity";
// Block Metadata Values
public static FixedMetadataValue blockMetadata;
public final static String blockMetadataKey = "mcMMO: Piston Tracking";
/**
* Things to be run when the plugin is enabled.
*/
@@ -102,7 +106,9 @@ public class mcMMO extends JavaPlugin {
try {
p = this;
getLogger().setFilter(new LogFilter(this));
entityMetadata = new FixedMetadataValue(mcMMO.p, true);
entityMetadata = new FixedMetadataValue(this, true);
blockMetadata = new FixedMetadataValue(this, true);
setupFilePaths();
setupSpout();
loadConfigFiles();