Fixed spelling mistake ('Frequancy')

This commit is contained in:
Deveducer 2012-02-25 18:48:05 -08:00
parent 3c5ccfcad6
commit 431288f404
3 changed files with 7 additions and 7 deletions

View file

@ -7,15 +7,15 @@ public class EntityTrackerInfo
public final NetworkMod Mod;
public final int ID;
public final int Range;
public final int UpdateFrequancy;
public final int UpdateFrequency;
public final boolean SendVelocityInfo;
public EntityTrackerInfo(NetworkMod mod, int ID, int range, int updateFrequancy, boolean sendVelocityInfo)
public EntityTrackerInfo(NetworkMod mod, int ID, int range, int updateFrequency, boolean sendVelocityInfo)
{
Mod = mod;
this.ID = ID;
Range = range;
UpdateFrequancy = updateFrequancy;
UpdateFrequancy = updateFrequency;
SendVelocityInfo = sendVelocityInfo;
}
}

View file

@ -850,17 +850,17 @@ public class MinecraftForge
* @param mod The BaseMod that provides this Entity.
* @param ID The ID for the Entity. Needs to be unique combination of Mod and ID.
* @param range How close a player has to be to be informed this Entity exists.
* @param updateFrequancy How many ticks between checking and sending information updates for this Entity.
* @param updateFrequency How many ticks between checking and sending information updates for this Entity.
* @param sendVelocityInfo If velocity information should be included in the update information.
* @return True, if successfully registered. False if the class is already registered.
*/
public static boolean registerEntity(Class entityClass, NetworkMod mod, int ID, int range, int updateFrequancy, boolean sendVelocityInfo)
public static boolean registerEntity(Class entityClass, NetworkMod mod, int ID, int range, int updateFrequency, boolean sendVelocityInfo)
{
if (ForgeHooks.entityTrackerMap.containsKey(entityClass))
{
return false;
}
ForgeHooks.entityTrackerMap.put(entityClass, new EntityTrackerInfo(mod, ID, range, updateFrequancy, sendVelocityInfo));
ForgeHooks.entityTrackerMap.put(entityClass, new EntityTrackerInfo(mod, ID, range, updateFrequency, sendVelocityInfo));
return true;
}

View file

@ -20,7 +20,7 @@ public class ForgeHooksServer
EntityTrackerInfo info = MinecraftForge.getEntityTrackerInfo(entity, true);
if (info != null)
{
tracker.trackEntity(entity, info.Range, info.UpdateFrequancy, info.SendVelocityInfo);
tracker.trackEntity(entity, info.Range, info.UpdateFrequency, info.SendVelocityInfo);
return true;
}
return false;