Fix edge/side block not working with custom blocks

This commit is contained in:
UnknownShadow200 2018-02-28 15:26:54 +11:00
parent 33f25ed326
commit 08286625f3
2 changed files with 9 additions and 4 deletions

View File

@ -139,6 +139,10 @@ namespace MCGalaxy {
internal static void UpdateAppearance(Predicate<Player> selector, EnvProp prop, int value) {
Player[] players = PlayerInfo.Online.Items;
if (prop == EnvProp.SidesBlock || prop == EnvProp.EdgeBlock) {
value = (byte)value;
}
foreach (Player pl in players) {
if (!selector(pl)) continue;

View File

@ -385,6 +385,7 @@ namespace MCGalaxy {
if (zone != null && zone.Config.GetEnvProp(i) != Block.Invalid) {
value = zone.Config.GetEnvProp(i);
}
value = (byte)value;
if (!hasBlockDefs) value = level.RawFallback((byte)value);
} else {
if (zone != null && zone.Config.GetEnvProp(i) != -1) {