diff --git a/Minecraft.Client/Common/res/TitleUpdate/res/colours.col b/Minecraft.Client/Common/res/TitleUpdate/res/colours.col
index 8c58f862..4f16a4e9 100644
Binary files a/Minecraft.Client/Common/res/TitleUpdate/res/colours.col and b/Minecraft.Client/Common/res/TitleUpdate/res/colours.col differ
diff --git a/Minecraft.Client/Common/res/TitleUpdate/res/colours.xml b/Minecraft.Client/Common/res/TitleUpdate/res/colours.xml
index 57c4a334..2e4e35f7 100644
--- a/Minecraft.Client/Common/res/TitleUpdate/res/colours.xml
+++ b/Minecraft.Client/Common/res/TitleUpdate/res/colours.xml
@@ -29,7 +29,7 @@
-
+
diff --git a/Minecraft.Client/Common/res/TitleUpdate/res/xml2col.py b/Minecraft.Client/Common/res/TitleUpdate/res/xml2col.py
new file mode 100644
index 00000000..364c44a9
--- /dev/null
+++ b/Minecraft.Client/Common/res/TitleUpdate/res/xml2col.py
@@ -0,0 +1,41 @@
+import struct
+import xml.etree.ElementTree as ET
+
+def write_utf_string(f, s):
+ # Format DataOutputStream: 2 byte lenght + string
+ binary_str = s.encode('utf-8')
+ f.write(struct.pack('>H', len(binary_str)))
+ f.write(binary_str)
+
+def convert_xml_to_col(xml_file, output_col):
+ try:
+ tree = ET.parse(xml_file)
+ root = tree.getroot()
+
+ colours = []
+ for colour in root.findall('colour'):
+ name = colour.get('name')
+ value_str = colour.get('value')
+
+ # Convert hex to int
+ value_int = int(value_str, 16)
+ colours.append((name, value_int))
+
+ with open(output_col, 'wb') as f:
+ # Header: Version1 + colour counter
+ f.write(struct.pack('>I', 1))
+ f.write(struct.pack('>I', len(colours)))
+
+ for name, value in colours:
+ write_utf_string(f, name)
+ # 'I' (unsigned int) to avoid error 2 miliardi
+ f.write(struct.pack('>I', value))
+
+ print(f"Success! Created: {output_col} with {len(colours)} colors.")
+
+ except Exception as e:
+ print(f"Error during conversion: {e}")
+
+if __name__ == "__main__":
+ # Make sure file name is "colours.xml"
+ convert_xml_to_col('colours.xml', 'colours.col')
\ No newline at end of file
diff --git a/Minecraft.World/OceanBiome.h b/Minecraft.World/OceanBiome.h
index a7faaf39..b4a13c59 100644
--- a/Minecraft.World/OceanBiome.h
+++ b/Minecraft.World/OceanBiome.h
@@ -10,5 +10,7 @@ public:
friendlies.clear();
friendlies_chicken.clear(); // 4J added since chicken now separated from main friendlies
friendlies_wolf.clear(); // 4J added since wolf now separated from main friendlies
+ topMaterial = Tile::gravel_Id; // blocco superficiale
+ material = Tile::gravel_Id;
}
};