mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-25 14:17:29 -04:00
Make /rp rainbow not be quite so laggy, also blocks such as 'wactive_water' now also alias to 'activewater' (thanks goodlyay).
This commit is contained in:
parent
a26e8ab3bc
commit
9ea080319c
@ -107,7 +107,9 @@ namespace MCGalaxy {
|
||||
for (int i = 0; i < names.Length; i++) {
|
||||
Properties[i].Name = names[i];
|
||||
if (names[i] != "unknown")
|
||||
Aliases[names[i]] = (byte)i;
|
||||
Aliases[names[i]] = (byte)i;
|
||||
if (names[i].IndexOf('_') >= 0)
|
||||
Aliases[names[i].Replace("_", "")] = (byte)i;
|
||||
}
|
||||
|
||||
// Add old MCGalaxy aliases
|
||||
|
@ -179,7 +179,7 @@ namespace MCGalaxy.BlockPhysics {
|
||||
if (rainbownum > 2) {
|
||||
byte block = lvl.blocks[C.b];
|
||||
if (block < Block.red || block > Block.darkpink) {
|
||||
lvl.AddUpdate(C.b, Block.red, true, C.data);
|
||||
lvl.AddUpdate(C.b, Block.red, false, C.data);
|
||||
} else {
|
||||
byte next = block == Block.darkpink ? Block.red : (byte)(block + 1);
|
||||
lvl.AddUpdate(C.b, next);
|
||||
|
Loading…
x
Reference in New Issue
Block a user