Skip to content

Commit

Permalink
Fixed a possible bug with the new POI replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
UnlikePaladin committed Jan 2, 2024
1 parent ba89c43 commit a3dd303
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public static void replaceHomePOI() {
newBedStates.addAll(originalBedStates);
newBedStates.addAll(addedBedStates);
PointOfInterestType.HOME.blockStates = ImmutableSet.copyOf(newBedStates);
addedBedStates.forEach(state -> PointOfInterestType.BLOCK_STATE_TO_POINT_OF_INTEREST_TYPE.put(state, PointOfInterestType.HOME));
}

@ExpectPlatform
Expand Down
3 changes: 2 additions & 1 deletion common/src/main/resources/pfm.accesswidener
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ accessible method net/minecraft/data/server/BlockLootTableGenerator dropsWithPro
accessible class net/minecraft/data/server/AbstractTagProvider$ObjectBuilder
accessible method net/minecraft/client/render/item/ItemRenderer renderBakedItemModel (Lnet/minecraft/client/render/model/BakedModel;Lnet/minecraft/item/ItemStack;IILnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;)V
accessible field net/minecraft/world/poi/PointOfInterestType blockStates Ljava/util/Set;
mutable field net/minecraft/world/poi/PointOfInterestType blockStates Ljava/util/Set;
mutable field net/minecraft/world/poi/PointOfInterestType blockStates Ljava/util/Set;
accessible field net/minecraft/world/poi/PointOfInterestType BLOCK_STATE_TO_POINT_OF_INTEREST_TYPE Ljava/util/Map;

0 comments on commit a3dd303

Please sign in to comment.