You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fCraft/World/DefaultSet.cs
+25-25Lines changed: 25 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,8 @@
1
1
// ProCraft Copyright 2014-2016 Joseph Beauvais <123DMWM@gmail.com>
2
+
3
+
// Based off code from https://github.com/Hetal728/MCGalaxy/blob/master/MCGalaxy/Blocks/DefaultSet.cs
4
+
// which was based off code from https://github.com/UnknownShadow200/ClassicalSharp/blob/master/ClassicalSharp/Blocks/DefaultSet.cs
5
+
// As the author of both of these files, I hereby license the code to be freely used without needing to follow the licenses of the aforementioned projects.
2
6
usingSystem;
3
7
usingSystem.Text;
4
8
@@ -13,7 +17,7 @@ public static BlockDefinition MakeCustomBlock(Block b) {
13
17
byteraw=(byte)b;
14
18
def.BlockID=raw;
15
19
def.Name=Name(raw);
16
-
def.CollideType=Collide(b);
20
+
def.CollideType=(byte)Collide(b);
17
21
def.Speed=1;
18
22
def.BlocksLight=BlocksLight(b);
19
23
@@ -24,9 +28,9 @@ public static BlockDefinition MakeCustomBlock(Block b) {
0 commit comments