mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47:59 +01:00
Changed mechanics for which blocks can be placed on clouds
This commit is contained in:
parent
5b18c7c0f6
commit
736ced3a51
1 changed files with 8 additions and 12 deletions
|
@ -50,8 +50,6 @@ public interface ICloudBlock {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isPlacementExcempt(block)) {
|
|
||||||
|
|
||||||
if (block instanceof ICloudBlock) {
|
if (block instanceof ICloudBlock) {
|
||||||
CloudType other = ((ICloudBlock)block).getCloudMaterialType(block.getDefaultState());
|
CloudType other = ((ICloudBlock)block).getCloudMaterialType(block.getDefaultState());
|
||||||
|
|
||||||
|
@ -60,14 +58,12 @@ public interface ICloudBlock {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Predicates.INTERACT_WITH_CLOUDS.apply(player)) {
|
if (!Predicates.INTERACT_WITH_CLOUDS.apply(player)) {
|
||||||
return type == CloudType.NORMAL;
|
|
||||||
}
|
|
||||||
return type != CloudType.ENCHANTED;
|
return type != CloudType.ENCHANTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(block instanceof ICloudBlock)) {
|
if (type == CloudType.NORMAL) {
|
||||||
return type != CloudType.ENCHANTED;
|
return !isPlacementExcempt(block);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue