mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 03:55:18 -04:00
Fix breaking custom blocks causing error from recent commits
also reduce skeleton size a little bit
This commit is contained in:
parent
5e77df62b3
commit
9707aac835
@ -21,6 +21,7 @@ using System.IO;
|
||||
using MCGalaxy.Blocks;
|
||||
using MCGalaxy.Commands;
|
||||
using MCGalaxy.Events.GroupEvents;
|
||||
using BlockID = System.UInt16;
|
||||
|
||||
namespace MCGalaxy {
|
||||
/// <summary> This is the group object, where ranks and their data are stored </summary>
|
||||
@ -54,7 +55,7 @@ namespace MCGalaxy {
|
||||
|
||||
public PlayerList Players;
|
||||
public List<Command> Commands;
|
||||
public bool[] Blocks = new bool[256];
|
||||
public bool[] Blocks = new bool[Block.ExtendedCount];
|
||||
public Group() { }
|
||||
|
||||
private Group(LevelPermission perm, int maxB, int maxUn, string name, char colCode) {
|
||||
@ -73,8 +74,9 @@ namespace MCGalaxy {
|
||||
}
|
||||
|
||||
public void SetUsableBlocks() {
|
||||
for (int i = 0; i < Blocks.Length; i++)
|
||||
Blocks[i] = BlockPerms.UsableBy(Permission, (byte)i);
|
||||
for (int i = 0; i < Blocks.Length; i++) {
|
||||
Blocks[i] = BlockPerms.UsableBy(Permission, (BlockID)i);
|
||||
}
|
||||
}
|
||||
|
||||
public bool CanExecute(Command cmd) { return Commands.Contains(cmd); }
|
||||
|
@ -140,7 +140,7 @@ namespace MCGalaxy.Maths {
|
||||
if (model.CaselessEq("head")) return new Vec3S32(31, 31, 31);
|
||||
if (model.CaselessEq("pig")) return new Vec3S32(28, 28, 28);
|
||||
if (model.CaselessEq("sheep")) return new Vec3S32(20, 40, 20);
|
||||
if (model.CaselessEq("skeleton")) return new Vec3S32(16, 60, 16);
|
||||
if (model.CaselessEq("skeleton")) return new Vec3S32(16, 56, 16);
|
||||
if (model.CaselessEq("spider")) return new Vec3S32(30, 24, 30);
|
||||
|
||||
return new Vec3S32(18, 56, 18); // default humanoid size
|
||||
|
Loading…
x
Reference in New Issue
Block a user