aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorMatt <mtthw8198@gmail.com>2021-09-22 01:54:01 -0700
committerMatt <mtthw8198@gmail.com>2021-09-22 01:54:01 -0700
commit936fb815659d3a682fdadbd55b02c57e8e2a9cc0 (patch)
tree6bc416cd0745b5fb17be44bed71cc5cad30442cf /src/main
parente1f94bee22ea862e7c4f24821986e9e1f342cc9f (diff)
downloadGT5-Unofficial-936fb815659d3a682fdadbd55b02c57e8e2a9cc0.tar.gz
GT5-Unofficial-936fb815659d3a682fdadbd55b02c57e8e2a9cc0.tar.bz2
GT5-Unofficial-936fb815659d3a682fdadbd55b02c57e8e2a9cc0.zip
sendChatToPlayer now sends only the public portion
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/gregtech/common/covers/GT_Cover_RedstoneWirelessBase.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneWirelessBase.java b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneWirelessBase.java
index 93a729d0c2..3df6ece47d 100644
--- a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneWirelessBase.java
+++ b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneWirelessBase.java
@@ -36,7 +36,7 @@ public abstract class GT_Cover_RedstoneWirelessBase extends GT_CoverBehavior {
aCoverVariable = (aCoverVariable & (PRIVATE_MASK | CHECKBOX_MASK)) | (((Integer)GT_Utility.stackToInt(aPlayer.inventory.getCurrentItem())).hashCode() & PUBLIC_MASK);
aTileEntity.setCoverDataAtSide(aSide, aCoverVariable);
- GT_Utility.sendChatToPlayer(aPlayer, trans("081", "Frequency: ") + aCoverVariable);
+ GT_Utility.sendChatToPlayer(aPlayer, trans("081", "Frequency: ") + (aCoverVariable & PUBLIC_MASK));
return true;
}
return false;
@@ -76,7 +76,7 @@ public abstract class GT_Cover_RedstoneWirelessBase extends GT_CoverBehavior {
aCoverVariable = (aCoverVariable & (PRIVATE_MASK | CHECKBOX_MASK)) | tPublicChannel;
}
}
- GT_Utility.sendChatToPlayer(aPlayer, trans("081", "Frequency: ") + aCoverVariable);
+ GT_Utility.sendChatToPlayer(aPlayer, trans("081", "Frequency: ") + (aCoverVariable & PUBLIC_MASK));
return aCoverVariable;
}