aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/threads
diff options
context:
space:
mode:
authorbotn365 <42187820+botn365@users.noreply.github.com>2021-07-02 20:42:33 +0200
committerGitHub <noreply@github.com>2021-07-02 20:42:33 +0200
commit6f80c03736d6d9ea9c72d19f0af72fc727714370 (patch)
treeb1b2d239b8321bc77603d24bf4fe8c0416a6b174 /src/main/java/gregtech/api/threads
parentdfa013f95f89a1d864f5d44dd118557ef24a7308 (diff)
parenta45737253c61e5e2d51ac868b698baadd57b397f (diff)
downloadGT5-Unofficial-6f80c03736d6d9ea9c72d19f0af72fc727714370.tar.gz
GT5-Unofficial-6f80c03736d6d9ea9c72d19f0af72fc727714370.tar.bz2
GT5-Unofficial-6f80c03736d6d9ea9c72d19f0af72fc727714370.zip
Merge pull request #584 from GTNewHorizons/enet-typo-fix
Fix typo in bot's enet implementation
Diffstat (limited to 'src/main/java/gregtech/api/threads')
-rw-r--r--src/main/java/gregtech/api/threads/GT_Runnable_Cable_Update.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/gregtech/api/threads/GT_Runnable_Cable_Update.java b/src/main/java/gregtech/api/threads/GT_Runnable_Cable_Update.java
index 6bc42e9cc8..7093184533 100644
--- a/src/main/java/gregtech/api/threads/GT_Runnable_Cable_Update.java
+++ b/src/main/java/gregtech/api/threads/GT_Runnable_Cable_Update.java
@@ -21,18 +21,16 @@ public class GT_Runnable_Cable_Update extends GT_Runnable_MachineBlockUpdate {
}
}
-
@Override
public void run() {
try {
while (!tQueue.isEmpty()) {
final ChunkCoordinates aCoords = tQueue.poll();
final TileEntity tTileEntity;
- final boolean isMachineBlock;
GT_Proxy.TICK_LOCK.lock();
try {
- //we dont want to go over cables that are in unloaded chuncks
+ //we dont want to go over cables that are in unloaded chunks
//keeping the lock just to make sure no CME happens
if (world.blockExists(aCoords.posX, aCoords.posY, aCoords.posZ)) {
tTileEntity = world.getTileEntity(aCoords.posX, aCoords.posY, aCoords.posZ);
@@ -48,7 +46,7 @@ public class GT_Runnable_Cable_Update extends GT_Runnable_MachineBlockUpdate {
((IMachineBlockUpdateable) tTileEntity).onMachineBlockUpdate();
// Now see if we should add the nearby blocks to the queue:
- //only add blocks wich the cable is conected too
+ // only add blocks the cable is connected to
if (tTileEntity instanceof BaseMetaPipeEntity &&
((BaseMetaPipeEntity) tTileEntity).getMetaTileEntity() instanceof GT_MetaPipeEntity_Cable)
{