mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -04:00
Fix edge/side block not working with custom blocks
This commit is contained in:
parent
33f25ed326
commit
08286625f3
@ -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;
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user