Skip to content

Commit

Permalink
Merge pull request #45 from yeeterlol/add-more-illegal-entities
Browse files Browse the repository at this point in the history
Add more illegal actors and format actor detection
  • Loading branch information
DrMeepso authored Jan 4, 2025
2 parents c7b14d5 + d8c684c commit 14673ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cove/Server/Server.Packet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ void OnNetworkPacket(byte[] packet, CSteamID sender)
long actorID = (long)((Dictionary<string, object>)packetInfo["params"])["actor_id"];

// all actor types that should not be spawned by anyone but the server!
if (type == "fish_spawn_alien" || type == "fish_spawn" || type == "raincloud")
string[] illegalTypes = ["fish_spawn_alien", "fish_spawn", "raincloud", "canvas", "ambient_bird", "void_portal", "metal_spawn"];
if (Array.LastIndexOf(illegalTypes, type) > -1)
{
WFPlayer offendingPlayer = AllPlayers.Find(p => p.SteamId.m_SteamID == sender.m_SteamID);

Expand Down

0 comments on commit 14673ca

Please sign in to comment.