use of com.github.dirtpowered.dirtmv.network.versions.Release39To29.sound.UpdateTask in project DirtMultiversion by DirtPowered.
the class ProtocolRelease39To29 method onConnect.
@Override
public void onConnect(ServerSession session) {
ProtocolStorage storage = session.getStorage();
storage.set(UpdateTask.class, new UpdateTask(session));
storage.set(OpenChestTracker.class, new OpenChestTracker());
if (!storage.hasObject(BlockStorage.class)) {
storage.set(BlockStorage.class, new BlockStorage(MinecraftVersion.R1_2_4));
}
if (!storage.hasObject(EntityTracker.class)) {
storage.set(EntityTracker.class, new EntityTracker());
}
}
Aggregations