Ignore:
Timestamp:
Apr 30, 2015, 1:55:16 AM (10 years ago)
Author:
alloc
Message:

Fixes for 11.4

Location:
binary-improvements/AllocsCommands
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/AllocsCommands/AllocsCommands.csproj

    r230 r233  
    4242    <Compile Include="AssemblyInfo.cs" />
    4343    <Compile Include="Commands\Give.cs" />
    44     <Compile Include="Commands\ListItems.cs" />
    4544    <Compile Include="Commands\ListKnownPlayers.cs" />
    4645    <Compile Include="Commands\ListLandProtection.cs" />
     
    5251    <Compile Include="PrivateMassageConnections.cs" />
    5352    <Compile Include="Chat.cs" />
     53    <Compile Include="Commands\ListItems.cs" />
     54    <Compile Include="Commands\GenerateItemIcons.cs" />
    5455  </ItemGroup>
    5556  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  • binary-improvements/AllocsCommands/Commands/ListKnownPlayers.cs

    r230 r233  
    3838                                int num = 0;
    3939                                foreach (string sid in PersistentContainer.Instance.Players.SteamIDs) {
    40                                         Player p = PersistentContainer.Instance.Players [sid];
     40                                        Player p = PersistentContainer.Instance.Players [sid, false];
    4141
    4242                                        if (
  • binary-improvements/AllocsCommands/Commands/ListLandProtection.cs

    r230 r233  
    8686                                        foreach (KeyValuePair<PersistentPlayerData, List<Vector3i>> kvp in owners) {
    8787                                                if (steamIdFilter.Length == 0 || kvp.Key.PlayerId.Equals (steamIdFilter)) {
    88                                                         string name = PersistentData.PersistentContainer.Instance.Players [kvp.Key.PlayerId].Name;
     88                                                        PersistentData.Player p = PersistentData.PersistentContainer.Instance.Players [kvp.Key.PlayerId, false];
     89                                                        string name = string.Empty;
     90                                                        if (p != null) {
     91                                                                name = p.Name;
     92                                                        }
    8993                                                        name += " (" + kvp.Key.PlayerId + ")";
    9094
  • binary-improvements/AllocsCommands/Commands/Reply.cs

    r230 r233  
    2626
    2727                        ClientInfo receiver = PrivateMassageConnections.GetLastPMSenderForPlayer (_sender);
    28                         if (receiver != null && receiver.clientId >= 0) {
     28                        if (receiver != null) {
    2929                                Chat.SendMessage (receiver, _sender, message);
    3030                        } else {
  • binary-improvements/AllocsCommands/Commands/ShowInventory.cs

    r230 r233  
    3131                                }
    3232
    33                                 Player p = PersistentContainer.Instance.Players [steamid];
     33                                Player p = PersistentContainer.Instance.Players [steamid, false];
    3434                                PersistentData.Inventory inv = p.Inventory;
    3535
Note: See TracChangeset for help on using the changeset viewer.