File tree 7 files changed +18
-16
lines changed
src/main/java/net/sourcewriters/minecraft/vcompat/provider
7 files changed +18
-16
lines changed Original file line number Diff line number Diff line change 4
4
<modelVersion >4.0.0</modelVersion >
5
5
<groupId >net.sourcewriters.minecraft</groupId >
6
6
<artifactId >vcompat-parent</artifactId >
7
- <version >3.0.0 </version >
7
+ <version >3.0.1 </version >
8
8
<packaging >pom</packaging >
9
9
10
10
<distributionManagement >
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >net.sourcewriters.minecraft</groupId >
7
7
<artifactId >vcompat-parent</artifactId >
8
- <version >3.0.0 </version >
8
+ <version >3.0.1 </version >
9
9
</parent >
10
10
<artifactId >vcompat-1_17_R1</artifactId >
11
11
19
19
<dependency >
20
20
<groupId >net.sourcewriters.minecraft</groupId >
21
21
<artifactId >vcompat-api</artifactId >
22
- <version >3.0.0 </version >
22
+ <version >${project.parent.version} </version >
23
23
<scope >provided</scope >
24
24
</dependency >
25
25
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >net.sourcewriters.minecraft</groupId >
7
7
<artifactId >vcompat-parent</artifactId >
8
- <version >3.0.0 </version >
8
+ <version >3.0.1 </version >
9
9
</parent >
10
10
<artifactId >vcompat-1_18_R1</artifactId >
11
11
27
27
<dependency >
28
28
<groupId >net.sourcewriters.minecraft</groupId >
29
29
<artifactId >vcompat-api</artifactId >
30
- <version >3.0.0 </version >
30
+ <version >${project.parent.version} </version >
31
31
<scope >provided</scope >
32
32
</dependency >
33
33
Original file line number Diff line number Diff line change 3
3
<parent >
4
4
<groupId >net.sourcewriters.minecraft</groupId >
5
5
<artifactId >vcompat-parent</artifactId >
6
- <version >3.0.0 </version >
6
+ <version >3.0.1 </version >
7
7
</parent >
8
8
<artifactId >vcompat-api</artifactId >
9
9
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ public class DataProvider extends VersionHandler<VersionControl> {
19
19
public static final Supplier <UUID > DEFAULT_RANDOM = UUID ::randomUUID ;
20
20
21
21
protected final NbtAdapterRegistry registry = new NbtAdapterRegistry ();
22
- protected final DataDistributor <UUID > defaultDistributor = createDistributor (
23
- new File (Bukkit .getWorlds ().get (0 ).getWorldFolder (), "pluginData" ));
22
+ private DataDistributor <UUID > defaultDistributor ;
24
23
25
24
protected DataProvider (VersionControl versionControl ) {
26
25
super (versionControl );
@@ -35,10 +34,13 @@ public WrappedContainer createContainer() {
35
34
}
36
35
37
36
public WrappedContainer createPersistentContainer () {
38
- return new SimpleSyntaxContainer <>(defaultDistributor .create ());
37
+ return new SimpleSyntaxContainer <>(getDefaultDistributor () .create ());
39
38
}
40
39
41
40
public DataDistributor <UUID > getDefaultDistributor () {
41
+ if (defaultDistributor == null ) {
42
+ return defaultDistributor = createDistributor (new File (Bukkit .getWorlds ().get (0 ).getWorldFolder (), "pluginData" ));
43
+ }
42
44
return defaultDistributor ;
43
45
}
44
46
Original file line number Diff line number Diff line change 3
3
<parent >
4
4
<groupId >net.sourcewriters.minecraft</groupId >
5
5
<artifactId >vcompat-parent</artifactId >
6
- <version >3.0.0 </version >
6
+ <version >3.0.1 </version >
7
7
</parent >
8
8
<artifactId >vcompat</artifactId >
9
9
14
14
<dependency >
15
15
<groupId >net.sourcewriters.minecraft</groupId >
16
16
<artifactId >vcompat-api</artifactId >
17
- <version >3.0.0 </version >
17
+ <version >${project.parent.version} </version >
18
18
</dependency >
19
19
20
20
<!-- vCompat Versions -->
21
21
22
22
<dependency >
23
23
<groupId >net.sourcewriters.minecraft</groupId >
24
24
<artifactId >vcompat-legacy</artifactId >
25
- <version >3.0.0 </version >
25
+ <version >${project.parent.version} </version >
26
26
</dependency >
27
27
<dependency >
28
28
<groupId >net.sourcewriters.minecraft</groupId >
29
29
<artifactId >vcompat-1_17_R1</artifactId >
30
- <version >3.0.0 </version >
30
+ <version >${project.parent.version} </version >
31
31
</dependency >
32
32
<dependency >
33
33
<groupId >net.sourcewriters.minecraft</groupId >
34
34
<artifactId >vcompat-1_18_R1</artifactId >
35
- <version >3.0.0 </version >
35
+ <version >${project.parent.version} </version >
36
36
</dependency >
37
37
</dependencies >
38
38
Original file line number Diff line number Diff line change 3
3
<parent >
4
4
<groupId >net.sourcewriters.minecraft</groupId >
5
5
<artifactId >vcompat-parent</artifactId >
6
- <version >3.0.0 </version >
6
+ <version >3.0.1 </version >
7
7
</parent >
8
8
<artifactId >vcompat-legacy</artifactId >
9
9
15
15
<dependency >
16
16
<groupId >net.sourcewriters.minecraft</groupId >
17
17
<artifactId >vcompat-api</artifactId >
18
- <version >3.0.0 </version >
18
+ <version >${project.parent.version} </version >
19
19
<scope >provided</scope >
20
20
</dependency >
21
21
You can’t perform that action at this time.
0 commit comments