aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/covers
diff options
context:
space:
mode:
authorcharles <johnch18@isu.edu>2021-04-02 16:53:33 -0600
committercharles <johnch18@isu.edu>2021-04-02 16:53:33 -0600
commit486dacc5d03c2d2c89297ab673479d2c17085d0e (patch)
treef649cbb234d6f8a8cf34b0eeb346fd7d308a2c42 /src/main/java/gregtech/common/covers
parent320fc85f4b2856d83f98c8c58bc76853e2cea207 (diff)
downloadGT5-Unofficial-486dacc5d03c2d2c89297ab673479d2c17085d0e.tar.gz
GT5-Unofficial-486dacc5d03c2d2c89297ab673479d2c17085d0e.tar.bz2
GT5-Unofficial-486dacc5d03c2d2c89297ab673479d2c17085d0e.zip
Added scanning data reflecting if device shut down.
Added notification to player that device shut down. Added scanning data reflecting if the device was disabled by soft mallet, cover, etc.
Diffstat (limited to 'src/main/java/gregtech/common/covers')
-rw-r--r--src/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java b/src/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java
index dbe9f7d9c0..ba943e4286 100644
--- a/src/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java
+++ b/src/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java
@@ -8,6 +8,7 @@ import gregtech.api.gui.widgets.GT_GuiIconButton;
import gregtech.api.gui.widgets.GT_GuiIconCheckButton;
import gregtech.api.interfaces.tileentity.ICoverable;
import gregtech.api.interfaces.tileentity.IMachineProgress;
+import gregtech.api.metatileentity.BaseTileEntity;
import gregtech.api.metatileentity.MetaTileEntity;
import gregtech.api.net.GT_Packet_TileEntityCover;
import gregtech.api.util.GT_CoverBehavior;
@@ -35,7 +36,7 @@ public class GT_Cover_ControlsWork extends GT_CoverBehavior {
} else {
if (((IMachineProgress) aTileEntity).wasShutdown()) {
((IMachineProgress) aTileEntity).disableWorking();
- // TODO: Notify lastPlayer the name and location of machine and that it stopped
+ GT_Utility.sendChatToPlayer(lastPlayer, aTileEntity.getInventoryName() + "at " + String.format("(%d,%d,%d)", aTileEntity.getXCoord(), aTileEntity.getYCoord(), aTileEntity.getZCoord()) + " shut down.");
return 2;
} else {
return 3 + doCoverThings(aSide,aInputRedstone, aCoverID, aCoverVariable - 3, aTileEntity, aTimer);