Esempio n. 1
0
        public static void SetBlocks()
        {
            SetCoreProperties();
            BlockBehaviour.SetupCorePhysicsHandlers();
            InitDefaults();

            BlockProps.Load("core", Block.Props);
            BlockBehaviour.SetupCoreHandlers();

            // Custom permissions set by the user.
            if (File.Exists("properties/block.properties"))
            {
                string[] lines = File.ReadAllLines("properties/block.properties");
                if (lines.Length > 0 && lines[0] == "#Version 2")
                {
                    LoadVersion2(lines);
                }
                else
                {
                    LoadVersion1(lines);
                }
            }
            SaveBlocks(BlockList);
        }