Skip to content

Commit f9ff93c

Browse files
Cervatorclaude
andcommitted
refactor: deprecate CoreRegistry-based ReadWriteStorageManager constructor
Mark the old constructor that resolves dependencies via CoreRegistry as @deprecated. The @Inject constructor is the correct DI path. No callers use the old constructor directly — it exists only as a fallback. BSA flagged this on PR MovingBlocks#5299. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e960afe commit f9ff93c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

engine/src/main/java/org/terasology/engine/persistence/internal/ReadWriteStorageManager.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ public final class ReadWriteStorageManager extends AbstractStorageManager
116116
private final Game game;
117117
private final BlockManager blockManager;
118118

119+
/**
120+
* @deprecated Use the @Inject constructor instead. This constructor relies on CoreRegistry
121+
* for implicit dependencies which conflicts with the DI migration.
122+
*/
123+
@Deprecated
119124
public ReadWriteStorageManager(Path savePath, ModuleEnvironment environment, EngineEntityManager entityManager, BlockManager blockManager,
120125
ExtraBlockDataManager extraDataManager, RecordAndReplaySerializer recordAndReplaySerializer,
121126
RecordAndReplayUtils recordAndReplayUtils, RecordAndReplayCurrentStatus recordAndReplayCurrentStatus) {

0 commit comments

Comments
 (0)