Players are no longer able to place liquids using packet 82. Fixes #1260

This commit is contained in:
ProfessorXZ 2016-08-12 12:28:41 +02:00
parent e0f17b82ef
commit 6c0f3ec15d
2 changed files with 10 additions and 1 deletions

View file

@ -362,7 +362,7 @@ namespace TShockAPI
public int TileY { get; set; }
}
/// <summary>
/// TileKill - When a tile is removed fromt he world
/// TileKill - When a tile is removed from the world
/// </summary>
public static HandlerList<TileKillEventArgs> TileKill;
@ -1260,6 +1260,7 @@ namespace TShockAPI
{ PacketTypes.PlaceTileEntity, HandlePlaceTileEntity },
{ PacketTypes.PlaceItemFrame, HandlePlaceItemFrame },
{ PacketTypes.SyncExtraValue, HandleSyncExtraValue },
{ PacketTypes.LoadNetModule, HandleLoadNetModule },
{ PacketTypes.ToggleParty, HandleToggleParty }
};
}
@ -4228,6 +4229,12 @@ namespace TShockAPI
return false;
}
private static bool HandleLoadNetModule(GetDataHandlerArgs args)
{
// Since this packet is never actually sent to us, every attempt at sending it can be considered as a liquid exploit attempt
return true;
}
private static bool HandleToggleParty(GetDataHandlerArgs args)
{
if (args.Player != null && !args.Player.HasPermission(Permissions.toggleparty))