Skip to content

Commit 8b13745

Browse files
upload 64 bit sqlite dll
1 parent 7f928d8 commit 8b13745

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

MCGalaxy/Levels/Level.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ void Init(string n, ushort x, ushort y, ushort z) {
8080
CloudsHeight = (short)(y + 2);
8181

8282
blocks = new byte[Width * Height * Length];
83-
ChunksX = (Width + 15) >> 4;
84-
ChunksY = (Height + 15) >> 4;
85-
ChunksZ = (Length + 15) >> 4;
83+
ChunksX = Utils.CeilDiv16(Width);
84+
ChunksY = Utils.CeilDiv16(Height);
85+
ChunksZ = Utils.CeilDiv16(Length);
8686
CustomBlocks = new byte[ChunksX * ChunksY * ChunksZ][];
8787

8888
spawnx = (ushort)(Width / 2);

MCGalaxy/Server/Server.cs

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ public void Start() {
8585
CheckFile("MySql.Data.dll");
8686
CheckFile("System.Data.SQLite.dll");
8787
CheckFile("sqlite3.dll");
88+
CheckFile("sqlite3_x32.dll");
89+
CheckFile("sqlite3_x64.dll");
8890
CheckFile("Newtonsoft.Json.dll");
8991
CheckFile("LibNoise.dll");
9092

MCGalaxy/util/Utils.cs

+3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ public static double Clamp(double value, double lo, double hi) {
8181
return Math.Max(Math.Min(value, hi), lo);
8282
}
8383

84+
/// <summary> Divides by 16, rounding up if there is a remainder. </summary>
85+
public static int CeilDiv16(int x) { return (x + 15) / 16; }
86+
8487
// Not all languages use . as their decimal point separator
8588
public static bool TryParseDecimal(string s, out float result) {
8689
if (s != null && s.IndexOf(',') >= 0) s = s.Replace(',', '.');

sqlite3_x32.dll

828 KB
Binary file not shown.

sqlite3_x64.dll

1.65 MB
Binary file not shown.

0 commit comments

Comments
 (0)