Fixed cloaking to actually cloak
This commit is contained in:
parent
564d638159
commit
a22d66d3da
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ public class MessageCloak implements IMessage, IMessageHandler<MessageCloak, IMe
|
||||||
for (int x = minX; x <= maxX; x++) {
|
for (int x = minX; x <= maxX; x++) {
|
||||||
for (int z = minZ; z <= maxZ; z++) {
|
for (int z = minZ; z <= maxZ; z++) {
|
||||||
Block block = worldObj.getBlock(x, y, z);
|
Block block = worldObj.getBlock(x, y, z);
|
||||||
if (block.isAssociatedBlock(Blocks.air)) {
|
if (!block.isAssociatedBlock(Blocks.air)) {
|
||||||
// 1.6.4 was skipping CC peripherals with metadata 2 and 4 here...
|
// 1.6.4 was skipping CC peripherals with metadata 2 and 4 here...
|
||||||
worldObj.setBlock(x, y, z, cloakBlockID, cloakBlockMetadata, 4);
|
worldObj.setBlock(x, y, z, cloakBlockID, cloakBlockMetadata, 4);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue