• R/O
  • HTTP
  • SSH
  • HTTPS

automap: Commit

Automap (OSS) GIT software repository


Commit MetaInfo

Revision125a8b251b25315f95b565129f28f3b3bbfeb16b (tree)
Time2020-08-08 07:07:48
Authormelchior <melchior@user...>
Commitermelchior

Log Message

Updates for V1.13 series (Prerelease...!)

Change Summary

Incremental Difference

--- a/Automap/Subsystems/AutomapSystem.cs
+++ b/Automap/Subsystems/AutomapSystem.cs
@@ -107,7 +107,7 @@ namespace Automap
107107 outputText.Flush();
108108
109109 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));
111111 chunkTopMetadata = new ColumnsMetadata(startChunkColumn);
112112 Logger.Notification("AUTOMAP Start {0}", startChunkColumn);
113113 Reload_Metadata();
@@ -572,18 +572,18 @@ namespace Automap
572572 }
573573
574574 /*************** Chunk Entities Scanning *********************/
575- if (chunkData.BlockEntities != null && chunkData.BlockEntities.Length > 0)
575+ if (chunkData.BlockEntities != null && chunkData.BlockEntities.Count > 0)
576576 {
577577 #if DEBUG
578- Logger.VerboseDebug("Surface@ {0} = BlockEntities: {1}", key, chunkData.BlockEntities.Length);
578+ Logger.VerboseDebug("Surface@ {0} = BlockEntities: {1}", key, chunkData.BlockEntities.Count);
579579 #endif
580580
581581 foreach (var blockEnt in chunkData.BlockEntities)
582582 {
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))
584584 {
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);
587587 }
588588 }
589589 }
@@ -653,7 +653,7 @@ namespace Automap
653653 var dMatch = Entity_Designators.SingleOrDefault(se => se.Key.Equals(loadedEntity.Value.Code));
654654 if (dMatch.Value != null)
655655 {
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);
657657 }
658658
659659 }
@@ -666,7 +666,7 @@ namespace Automap
666666 var playerNodePoi = new PointOfInterest()
667667 {
668668 Name = "Note",
669- Location = ClientAPI.World.Player.Entity.LocalPos.AsBlockPos.Copy(),
669+ Location = ClientAPI.World.Player.Entity.Pos.AsBlockPos.Copy(),
670670 Notes = notation,
671671 Timestamp = DateTime.UtcNow,
672672 };
--- a/Automap/modinfo.json
+++ b/Automap/modinfo.json
@@ -4,10 +4,10 @@
44 "description" : "Automap; Generates a static HTML map dynamically, with Points of Interest!",
55 "authors": ["Melchior","VeryGoodDog"],
66 "contributors":["VeryGoodDog"],
7- "version": "0.1.3",
7+ "version": "0.1.4",
88 "side":"Client",
99 "dependencies": {
10- "game": "1.12.0"
10+ "game": "1.13.0-pre.5"
1111 },
1212 "website": "http://nowebsite.nope"
1313 }
\ No newline at end of file
Show on old repository browser