Skip to content

Commit c4f237f

Browse files
authored
Merge pull request #349 from FTBTeam/dev
Dev
2 parents a652e0c + b6e692f commit c4f237f

File tree

4 files changed

+27
-13
lines changed

4 files changed

+27
-13
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2525
### Fixed
2626
* Fixed light technical blocks (`minecraft:light`) rendering black on the map
2727
* Fixed a piston protection issue which allowed blocks to be pulled out of protected chunks with a sticky piston
28+
* Fixed some entities not rendering on the map/minimap at all
29+
* Entities where the texture isn't known now show on the map as a generic "dot" icon
2830

2931
## [2101.1.7]
3032

common/src/main/java/dev/ftb/mods/ftbchunks/api/event/ClaimedChunkEvent.java

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,27 @@
1616
*/
1717
public interface ClaimedChunkEvent {
1818
/**
19-
* Fired when a chunk is about to be claimed. This can be cancelled by returning a non-null claim result; it is
20-
* recommended to use {@link ClaimResult#customProblem(String)} for this.
19+
* Fired when a chunk is about to be claimed. This can be cancelled by returning a failed claim result; it is
20+
* recommended to use {@link ClaimResult#customProblem(String)} for this. Return {@link ClaimResult#success()} to
21+
* allow the operation to continue.
2122
*/
2223
Event<Before> BEFORE_CLAIM = EventFactory.createCompoundEventResult();
2324
/**
24-
* Fired when a chunk is about to be force-loaded. This can be cancelled by returning a non-null claim result; it is
25-
* recommended to use {@link ClaimResult#customProblem(String)} for this.
25+
* Fired when a chunk is about to be force-loaded. This can be cancelled by returning a failed claim result; it is
26+
* recommended to use {@link ClaimResult#customProblem(String)} for this. Return {@link ClaimResult#success()} to
27+
* allow the operation to continue.
2628
*/
2729
Event<Before> BEFORE_LOAD = EventFactory.createCompoundEventResult();
2830
/**
29-
* Fired when a chunk is about to be un-claimed. This can be cancelled by returning a non-null claim result; it is
30-
* recommended to use {@link ClaimResult#customProblem(String)} for this.
31+
* Fired when a chunk is about to be unclaimed. This can be cancelled by returning a failed claim result; it is
32+
* recommended to use {@link ClaimResult#customProblem(String)} for this. Return {@link ClaimResult#success()} to
33+
* allow the operation to continue.
3134
*/
3235
Event<Before> BEFORE_UNCLAIM = EventFactory.createCompoundEventResult();
3336
/**
34-
* Fired when a chunk is about to be un-force-loaded. This can be cancelled by returning a non-null claim result; it is
35-
* recommended to use {@link ClaimResult#customProblem(String)} for this.
37+
* Fired when a chunk is about to be un-force-loaded. This can be cancelled by returning a failed claim result; it is
38+
* recommended to use {@link ClaimResult#customProblem(String)} for this. Return {@link ClaimResult#success()} to
39+
* allow the operation to continue.
3640
*/
3741
Event<Before> BEFORE_UNLOAD = EventFactory.createCompoundEventResult();
3842

common/src/main/java/dev/ftb/mods/ftbchunks/client/mapicon/EntityIcons.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,11 @@ protected Map<EntityType<?>, EntityIconSettings> prepare(ResourceManager resourc
8585
}
8686
}
8787

88-
if (entityIconSettings == null) {
89-
if (entityType.getCategory() != MobCategory.MISC && FTBChunks.isDevMode()) {
88+
if (entityIconSettings == null && entityType.getCategory() != MobCategory.MISC) {
89+
if (FTBChunks.isDevMode()) {
9090
LOGGER.error("Missing entity icon settings for {}", id);
91-
entityIconSettings = EntityIconSettings.OLD_HIDDEN;
92-
} else {
93-
continue;
9491
}
92+
entityIconSettings = EntityIconSettings.OLD_HIDDEN;
9593
}
9694

9795
map.put(entityType, entityIconSettings);
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"texture": "minecolonies:textures/entity/citizen/default/citizenfemale1_a.png",
3+
"slice": {
4+
"x": 8,
5+
"y": 8,
6+
"width": 8,
7+
"height": 8
8+
},
9+
"scale": 1.0
10+
}

0 commit comments

Comments
 (0)