Skip to content

Commit 2b7d18d

Browse files
committed
Merge branch 'master' into bleeding
2 parents bb588c3 + 05f8f60 commit 2b7d18d

File tree

7 files changed

+119
-24
lines changed

7 files changed

+119
-24
lines changed

.github/CONTRIBUTING.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# How to contribute
2+
3+
You want help me make BlueMap better? Awesome!<br>
4+
Here you learn how it works and what you need to know before contributing.
5+
6+
>**Please read this before creating an Issue or a PullRequest!** Issues/PR's that don't follow these instructions will be closed!<br>
7+
>**Issues are NOT for asking questions!** If you have a question, please use our [Discord](https://discord.gg/zmkyJa3) or [Reddit](https://www.reddit.com/r/BlueMap/)!
8+
9+
### Table of Contents
10+
- [Reporting a Bug](#reporting-a-bug)
11+
- [Suggesting a new feature or change](#suggesting-a-new-feature-or-change)
12+
- [Creating a Pull-Request](#creating-a-pull-request)
13+
14+
## Reporting a Bug
15+
The first thing you need to do, is to make sure what you found is actually a bug:<br>
16+
- A bug is an unintended behaviour of an implemented feature.
17+
BlueMap is not "done", there are quite a lot of features missing!
18+
So, if something doesn't work because it is not implemented yet, its not a bug.
19+
If you are not sure, you can briefly ask about it in our [Discord](https://discord.gg/zmkyJa3) before creating an Issue. :)
20+
- Make sure you tested it well enough to be sure it's not an issue on your end. If something doesn't work for you but for everyone else, its probably **not** a bug!
21+
22+
Also, please make sure noone else has already reported the same or a very similar bug!
23+
If you have additional information for an existing bug-report, you can add a comment to the already existing Issue :)
24+
25+
To report your bug, please open a [new Issue](https://github.com/BlueMap-Minecraft/BlueMap/issues/new?template=bug_report.md) with the `Bug report`-template and follow these guidlines:
26+
27+
### Guidlines for a good Bug-Issue
28+
**A short, informative Title**<br>
29+
Your Issue should have a short but informative title, which makes it possible to distinquish it from- and easily recognize it in-between- other Issues.
30+
If someone else finds the same bug, they should be able to find your Issue only based on the title!
31+
32+
**A detailed description**<br>
33+
Describe your bug in as much detail as possible:
34+
- What did you do before it happened? (How can the bug be reproduced?)
35+
- What did you expect to happen?
36+
- What happened instead?
37+
- CONTEXT!!
38+
- The exact BlueMap-Version (e.g. the name of the used .jar file)
39+
- The used os and platform (Windows/Linux, Spigot/Paper/Forge/Fabric/Sponge)
40+
- Has the world been generated using any minecraft-mods?
41+
- etc..
42+
- Is there a log- or a config-file that might help? Include it.
43+
- Maybe add a screenshot or video for illustration.
44+
45+
**Well formatted and structured**<br>
46+
Make sure your Issue is easy to read and not a mess:
47+
- Use paragraphs to structure your issue.
48+
- Use [Markdown](https://guides.github.com/features/mastering-markdown/) to add headings and formatting.
49+
- Use codeblocks for log-snippets.
50+
- Upload full logs as file-attachments or use a paste-site like [GitHub Gists](https://gist.github.com/) or [Pastebin](https://pastebin.com/).
51+
52+
**One Issue, one bug**<br>
53+
Create a separate Issue for each bug you find! Issues that contain more than one bug will be closed!
54+
55+
## Suggesting a new feature or change
56+
**(Todo)**
57+
58+
## Creating a Pull-Request
59+
**(Todo)**
Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,36 @@
11
---
22
name: Bug report
3-
about: Found a bug? Report it to help BlueMap improve!
3+
about: 'Use this if you want to report a bug!'
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

10-
**BlueMap Version:**
11-
*Full version including the target, e.g. `1.0.0-fabric-1.16.1`*
9+
<!--
10+
Make sure you read the Contribution-Guidelines (https://github.com/BlueMap-Minecraft/BlueMap/blob/master/.github/CONTRIBUTING.md) before submitting your Bug-Report!
11+
Issues that don't follow these Guidelines will likely be closed!
12+
-->
13+
14+
### What i did / Steps to reproduce
15+
<!-- What did you do before it happened? (How can the bug be reproduced?) -->
16+
17+
### Expected result
18+
<!-- What did you expect to happen? -->
19+
20+
### Actual result
21+
<!-- What happened instead? -->
22+
23+
### Context
24+
**BlueMap Version:** <!-- Full BlueMap-version including the target, for example: -->
25+
`1.0.0-fabric-1.16.1`
1226

13-
I am using:
14-
- [ ] mods (on the rendered world)
15-
- [ ] resourcepacks (in bluemaps `config/resourcepack` folder)
27+
<!--
28+
Add more context here!
29+
- The used os and platform (Windows/Linux, Spigot/Paper/Forge/Fabric/Sponge)
30+
- Has the world been generated using any minecraft-mods?
31+
etc..
1632
17-
**Description:**
18-
*Describe the bug in full detail, including a way to reproduce it.
19-
Sometimes a full log of your server-startup or a crash-report can be of much help!*
33+
Also:
34+
- Is there a log- or a config-file that might help? Include it.
35+
- Maybe add a screenshot or video for illustration.
36+
-->

BlueMapCore/src/main/java/de/bluecolored/bluemap/core/MinecraftVersion.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import java.util.regex.Matcher;
3434
import java.util.regex.Pattern;
3535

36+
@DebugDump
3637
public class MinecraftVersion implements Comparable<MinecraftVersion> {
3738

3839
private static final Pattern VERSION_REGEX = Pattern.compile("(?:(?<major>\\d+)\\.(?<minor>\\d+))(?:\\.(?<patch>\\d+))?(?:\\-(?:pre|rc)\\d+)?");
@@ -41,10 +42,8 @@ public class MinecraftVersion implements Comparable<MinecraftVersion> {
4142
public static final MinecraftVersion EARLIEST_SUPPORTED = new MinecraftVersion(1, 12, 2);
4243
public static final MinecraftVersion THE_FLATTENING = new MinecraftVersion(1, 13);
4344

44-
@DebugDump
4545
private final int major, minor, patch;
4646

47-
@DebugDump
4847
private final Lazy<MinecraftResource> resource;
4948

5049
public MinecraftVersion(int major, int minor) {
@@ -142,6 +141,7 @@ public static MinecraftVersion of(String versionString) {
142141
return new MinecraftVersion(major, minor, patch);
143142
}
144143

144+
@DebugDump
145145
public enum MinecraftResource {
146146

147147
MC_1_12 (new MinecraftVersion(1, 12), "mc1_12", "https://launcher.mojang.com/v1/objects/0f275bc1547d01fa5f56ba34bdc87d981ee12daf/client.jar"),
@@ -152,9 +152,9 @@ public enum MinecraftResource {
152152
MC_1_16_2 (new MinecraftVersion(1, 16, 2), "mc1_16", "https://launcher.mojang.com/v1/objects/653e97a2d1d76f87653f02242d243cdee48a5144/client.jar"),
153153
MC_1_17 (new MinecraftVersion(1, 17), "mc1_16", "https://launcher.mojang.com/v1/objects/1cf89c77ed5e72401b869f66410934804f3d6f52/client.jar");
154154

155-
@DebugDump private final MinecraftVersion version;
156-
@DebugDump private final String resourcePrefix;
157-
@DebugDump private final String clientUrl;
155+
private final MinecraftVersion version;
156+
private final String resourcePrefix;
157+
private final String clientUrl;
158158

159159
MinecraftResource(MinecraftVersion version, String resourcePrefix, String clientUrl) {
160160
this.version = version;

BlueMapCore/src/main/java/de/bluecolored/bluemap/core/config/CoreConfig.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@
3030
import java.io.File;
3131
import java.io.IOException;
3232

33+
@DebugDump
3334
public class CoreConfig {
3435

35-
@DebugDump private boolean downloadAccepted = false;
36-
@DebugDump private int renderThreadCount = 0;
37-
@DebugDump private boolean metricsEnabled = false;
38-
@DebugDump private File dataFolder = new File("data");
39-
40-
36+
private boolean downloadAccepted = false;
37+
private int renderThreadCount = 0;
38+
private boolean metricsEnabled = false;
39+
private File dataFolder = new File("data");
40+
4141
public CoreConfig(ConfigurationNode node) throws IOException {
4242

4343
//accept-download

BlueMapCore/src/main/java/de/bluecolored/bluemap/core/map/BmMap.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,5 +182,15 @@ public boolean equals(Object obj) {
182182

183183
return false;
184184
}
185-
185+
186+
@Override
187+
public String toString() {
188+
return "BmMap{" +
189+
"id='" + id + '\'' +
190+
", name='" + name + '\'' +
191+
", world=" + world +
192+
", fileRoot=" + fileRoot +
193+
'}';
194+
}
195+
186196
}

BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/MCAWorld.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,5 +422,14 @@ public static Vector2i blockToChunk(Vector3i pos) {
422422
pos.getZ() >> 4
423423
);
424424
}
425-
425+
426+
@Override
427+
public String toString() {
428+
return "MCAWorld{" +
429+
"uuid=" + uuid +
430+
", worldFolder=" + worldFolder +
431+
", name='" + name + '\'' +
432+
'}';
433+
}
434+
426435
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
org.gradle.jvmargs=-Xmx3G
22
org.gradle.daemon=false
33

4-
coreVersion=1.5.4
4+
coreVersion=1.5.5

0 commit comments

Comments
 (0)