Automap (client) [VS plugin mod]
Revision | 125a8b251b25315f95b565129f28f3b3bbfeb16b (tree) |
---|---|
Time | 2020-08-08 07:07:48 |
Author | melchior <melchior@user...> |
Commiter | melchior |
Updates for V1.13 series (Prerelease...!)
@@ -107,7 +107,7 @@ namespace Automap | ||
107 | 107 | outputText.Flush(); |
108 | 108 | |
109 | 109 | Prefill_POI_Designators(); |
110 | - startChunkColumn = new Vec2i((ClientAPI.World.Player.Entity.LocalPos.AsBlockPos.X / chunkSize), (ClientAPI.World.Player.Entity.LocalPos.AsBlockPos.Z / chunkSize)); | |
110 | + startChunkColumn = new Vec2i((ClientAPI.World.Player.Entity.Pos.AsBlockPos.X / chunkSize), (ClientAPI.World.Player.Entity.Pos.AsBlockPos.Z / chunkSize)); | |
111 | 111 | chunkTopMetadata = new ColumnsMetadata(startChunkColumn); |
112 | 112 | Logger.Notification("AUTOMAP Start {0}", startChunkColumn); |
113 | 113 | Reload_Metadata(); |
@@ -572,18 +572,18 @@ namespace Automap | ||
572 | 572 | } |
573 | 573 | |
574 | 574 | /*************** Chunk Entities Scanning *********************/ |
575 | - if (chunkData.BlockEntities != null && chunkData.BlockEntities.Length > 0) | |
575 | + if (chunkData.BlockEntities != null && chunkData.BlockEntities.Count > 0) | |
576 | 576 | { |
577 | 577 | #if DEBUG |
578 | - Logger.VerboseDebug("Surface@ {0} = BlockEntities: {1}", key, chunkData.BlockEntities.Length); | |
578 | + Logger.VerboseDebug("Surface@ {0} = BlockEntities: {1}", key, chunkData.BlockEntities.Count); | |
579 | 579 | #endif |
580 | 580 | |
581 | 581 | foreach (var blockEnt in chunkData.BlockEntities) |
582 | 582 | { |
583 | - if (blockEnt != null && blockEnt.Block != null && BlockID_Designators.ContainsKey(blockEnt.Block.BlockId)) | |
583 | + if (blockEnt.Value != null && blockEnt.Value.Block != null && BlockID_Designators.ContainsKey(blockEnt.Value.Block.BlockId)) | |
584 | 584 | { |
585 | - var designator = BlockID_Designators[blockEnt.Block.BlockId]; | |
586 | - designator.SpecialAction(ClientAPI, POIs, blockEnt.Pos.Copy(), blockEnt.Block); | |
585 | + var designator = BlockID_Designators[blockEnt.Value.Block.BlockId]; | |
586 | + designator.SpecialAction(ClientAPI, POIs, blockEnt.Value.Pos.Copy(), blockEnt.Value.Block); | |
587 | 587 | } |
588 | 588 | } |
589 | 589 | } |
@@ -653,7 +653,7 @@ namespace Automap | ||
653 | 653 | var dMatch = Entity_Designators.SingleOrDefault(se => se.Key.Equals(loadedEntity.Value.Code)); |
654 | 654 | if (dMatch.Value != null) |
655 | 655 | { |
656 | - dMatch.Value.SpecialAction(ClientAPI, this.EOIs, loadedEntity.Value.LocalPos.AsBlockPos.Copy(), loadedEntity.Value); | |
656 | + dMatch.Value.SpecialAction(ClientAPI, this.EOIs, loadedEntity.Value.Pos.AsBlockPos.Copy(), loadedEntity.Value); | |
657 | 657 | } |
658 | 658 | |
659 | 659 | } |
@@ -666,7 +666,7 @@ namespace Automap | ||
666 | 666 | var playerNodePoi = new PointOfInterest() |
667 | 667 | { |
668 | 668 | Name = "Note", |
669 | - Location = ClientAPI.World.Player.Entity.LocalPos.AsBlockPos.Copy(), | |
669 | + Location = ClientAPI.World.Player.Entity.Pos.AsBlockPos.Copy(), | |
670 | 670 | Notes = notation, |
671 | 671 | Timestamp = DateTime.UtcNow, |
672 | 672 | }; |
@@ -4,10 +4,10 @@ | ||
4 | 4 | "description" : "Automap; Generates a static HTML map dynamically, with Points of Interest!", |
5 | 5 | "authors": ["Melchior","VeryGoodDog"], |
6 | 6 | "contributors":["VeryGoodDog"], |
7 | - "version": "0.1.3", | |
7 | + "version": "0.1.4", | |
8 | 8 | "side":"Client", |
9 | 9 | "dependencies": { |
10 | - "game": "1.12.0" | |
10 | + "game": "1.13.0-pre.5" | |
11 | 11 | }, |
12 | 12 | "website": "http://nowebsite.nope" |
13 | 13 | } |
\ No newline at end of file |