Skip to content

Commit d1552e7

Browse files
committed
Disabled shares should not be considers unhanded
1 parent 3587883 commit d1552e7

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/org/mvplugins/multiverse/inventories/handleshare/ReadOnlyShareHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ protected void prepareProfiles() {
2323
for (WorldGroup worldGroup : worldGroups) {
2424
affectedProfiles.addReadProfile(worldGroup.getGroupProfileContainer().getProfileKey(player), worldGroup.getApplicableShares());
2525
unhandledShares.removeAll(worldGroup.getApplicableShares());
26+
unhandledShares.removeAll(worldGroup.getDisabledShares());
2627
}
2728
if (!unhandledShares.isEmpty()) {
2829
affectedProfiles.addReadProfile(

src/main/java/org/mvplugins/multiverse/inventories/handleshare/WriteOnlyShareHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ protected void prepareProfiles() {
3838
worldGroup.getApplicableShares()
3939
);
4040
unhandledShares.removeAll(worldGroup.getApplicableShares());
41+
unhandledShares.removeAll(worldGroup.getDisabledShares());
4142
}
4243
Shares sharesToWrite = inventoriesConfig.getAlwaysWriteWorldProfile()
4344
? Sharables.enabled()

0 commit comments

Comments
 (0)