1
0
Fork 0

Compare commits

...

3 Commits

Author SHA1 Message Date
Ryan Fox 0778e579d0
Add config value for IPHub.info API key 2020-10-21 22:47:24 +00:00
Ryan Fox 5e0cbb265b
Add logs folder to .gitignore 2020-10-21 20:58:26 +00:00
Ryan Fox 89798e76f1
1.16.3 2020-10-21 19:55:03 +00:00
4 changed files with 13 additions and 15 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
.gradle/
build/
logs/
mcsrc/
run/

View File

@ -1,8 +1,8 @@
org.gradle.jvmargs=-Xmx1G
minecraft_version=1.16.1
yarn_mappings=1.16.1+build.1
loader_version=0.8.8+build.202
mod_version = 1.1.0
maven_group = party.2a03.mc
archives_base_name = minecraft-tweaks-2a03
fabric_version=0.13.1+build.370-1.16
minecraft_version=1.16.3
yarn_mappings=1.16.3+build.47
loader_version=0.10.3+build.211
mod_version=1.1.0
maven_group=party.2a03.mc
archives_base_name=minecraft-tweaks-2a03
fabric_version=0.24.1+build.412-1.16

View File

@ -18,7 +18,7 @@ public abstract class MixinServerPlayerEntity extends PlayerEntity {
private RegistryKey<World> spawnPointDimension;
public MixinServerPlayerEntity() {
super(null, null, null);
super(null, null, 0, null);
}
@Inject(method = "moveToSpawn", at = @At("HEAD"), cancellable = true)

View File

@ -37,8 +37,10 @@ public class Config {
setDefault("disableTntExplosions", false);
setDefault("disableRespawnAnchorExplosions", false);
setDefault("iphubApiKey", "");
setDefault("spawn", (new PlayerPosition()).getJSON());
saveConfig();
LOGGER.info("Configuration loaded");
}
@ -89,12 +91,7 @@ public class Config {
saveConfig();
}
public static void setDefault(String key, JSONArray data) {
if (!json.has(key))
json.put(key, data);
}
public static void setDefault(String key, Boolean data) {
public static void setDefault(String key, Object data) {
if (!json.has(key))
json.put(key, data);
}