Implement BukkitMetadataStore, fix legacy setMetadata calls

This commit is contained in:
Shane Freeder
2020-03-04 23:18:15 +00:00
parent 88767fd0a9
commit 5ba410f4cf
5 changed files with 60 additions and 6 deletions

View File

@ -35,6 +35,7 @@ public class MetadataConstants {
public final static MetadataKey<Boolean> PETS_ANIMAL_TRACKING_METAKEY = new MetadataKey<>("mcMMO: Pet Animal");
public static final MetadataKey<Boolean> COTW_TEMPORARY_SUMMON = new MetadataKey<>("mcMMO: COTW Entity");
@Deprecated
public static FixedMetadataValue metadataValue; //Gains value in onEnable
}

View File

@ -190,8 +190,11 @@ public class mcMMO implements McMMOApi {
commandRegistrationManager.registerACFCommands();
commandRegistrationManager.registerCommands();
/*
nbtManager = new NBTManager();
*/
//Init Chunk Manager Factory
chunkManagerFactory = new ChunkManagerFactory(this);
placeStore = chunkManagerFactory.getChunkManager(); // Get our ChunkletManager