1 - Removed some comments and other tiny things that aren't necessary.

This commit is contained in:
Andrew Marheine committed 2021-10-18 18:07:42 -05:00
1 parent dc3a64ece4
commit 19062d55e9
4 files changed
+13 -16

No files matched your search

+6 -6
View File
@@ -280,11 +280,11 @@ namespace CalamityMod
Main.player[reader.ReadInt32()].Calamity().HandleReforgeTierSafety(reader);
break;
//
// Default case: with no idea how long the packet is, we can't safely read data.
// Throw an exception now instead of allowing the network stream to corrupt.
//
default:
//
// Default case: with no idea how long the packet is, we can't safely read data.
// Throw an exception now instead of allowing the network stream to corrupt.
//
default:
CalamityMod.Instance.Logger.Error($"Failed to parse Calamity packet: No Calamity packet exists with ID {msgType}.");
throw new Exception("Failed to parse Calamity packet: Invalid Calamity packet ID.");
}
@@ -399,6 +399,6 @@ namespace CalamityMod
// Reforge syncs
ItemTypeLastReforgedSync, // TODO -- there has to be a better way to do this, but I don't know what it is
ReforgeTierSafetySync,
ReforgeTierSafetySync
}
}