Rename methods that were ambiguous in meaning.
This renames some methods in the Utils class to better reflect what they do or what they provide back. It should be clearer what these methods are for now than before.
This commit is contained in:
parent
332e6b2518
commit
4eebaf6c44
4 changed files with 7 additions and 5 deletions
|
|
@ -483,7 +483,7 @@ namespace TShockAPI
|
|||
/// Returns an IPv4 address from a DNS query
|
||||
/// </summary>
|
||||
/// <param name="hostname">string ip</param>
|
||||
public string GetIPv4Address(string hostname)
|
||||
public string GetIPv4AddressFromHostname(string hostname)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
@ -502,7 +502,7 @@ namespace TShockAPI
|
|||
/// Checks if world has hit the max number of chests
|
||||
/// </summary>
|
||||
/// <returns>True if the entire chest array is used</returns>
|
||||
public bool MaxChests()
|
||||
public bool HasWorldReachedMaxChests()
|
||||
{
|
||||
for (int i = 0; i < Main.chest.Length; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue