1.13.2, ViaVersion 2.0.0

This commit is contained in:
creeper123123321 2018-12-11 19:49:04 -02:00
parent 66ebce7d47
commit dd3628d2c5
No known key found for this signature in database
GPG Key ID: 0AC57D54786721D1
4 changed files with 30 additions and 12 deletions

View File

@ -1,11 +1,14 @@
buildscript {
repositories {
mavenCentral()
maven { url 'https://www.jitpack.io' }
maven { url 'https://files.minecraftforge.net/maven' }
jcenter()
maven { url 'https://www.dimdev.org/maven/' }
maven { url 'https://repo.spongepowered.org/maven/' }
}
dependencies {
classpath 'org.dimdev:ForgeGradle:2.3-SNAPSHOT'
classpath 'com.github.Chocohead:ForgeGradle:moderniser-SNAPSHOT'
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
}
}
@ -33,6 +36,7 @@ repositories {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'https://www.dimdev.org/maven/' }
maven { url 'https://jitpack.io' }
maven { url 'http://repo.strezz.org/artifactory/list/Strezz-Central' }
}
configurations {
@ -41,18 +45,17 @@ configurations {
}
dependencies {
shade ('us.myles:viaversion:1.5.2') {
shade ('us.myles:viaversion:2.0.0-SNAPSHOT') {
transitive = false
changing = true
}
shade 'org.yaml:snakeyaml:1.18'
compile 'org.dimdev:rift:1.0.4-74'
implementation 'com.github.Chocohead:Rift:jitpack-SNAPSHOT:dev'
}
jar {
configurations.shade.each { dep ->
from(project.zipTree(dep)){
exclude 'META-INF', 'META-INF/**'
//exclude 'META-INF', 'META-INF/**'
exclude 'us/myles/ViaVersion/SpongePlugin.class'
exclude 'javassist/**'
}
@ -71,8 +74,8 @@ mixin {
}
minecraft {
version = '1.13'
mappings = 'snapshot_20180904'
version = '1.13.2'
mappings = 'snapshot_20181130'
runDir = 'run'
tweakClass = 'org.dimdev.riftloader.launch.RiftLoaderClientTweaker'
}

View File

@ -37,8 +37,8 @@ public class SaveProtocolButton extends GuiButton {
}
@Override
public void mousePressed(double p_mouseClicked_1_, double p_mouseClicked_3_) {
super.mousePressed(p_mouseClicked_1_, p_mouseClicked_3_);
public void onClick(double p_mouseClicked_1_, double p_mouseClicked_3_) {
super.onClick(p_mouseClicked_1_, p_mouseClicked_3_);
try {
ProtocolRegistry.SERVER_PROTOCOL = Integer.parseInt(textField.getText());
} catch (NumberFormatException e) {

View File

@ -44,14 +44,14 @@ public abstract class MixinGuiMultiplayer extends GuiScreen {
private void onInitGui(CallbackInfo ci) {
protocolVersion = new GuiTextField(1235, fontRenderer, this.width / 2 + 70, 8, 30, 20);
protocolVersion.setText(Integer.toString(ProtocolRegistry.SERVER_PROTOCOL));
protocolVersion.func_200675_a(new IntegerFormatFilter());
this.eventListeners.add(protocolVersion);
protocolVersion.setValidator(new IntegerFormatFilter());
this.children.add(protocolVersion);
saveProtocol = new SaveProtocolButton(6356, width / 2 + 100, 8, 50, 20,
I18n.format("gui.save_protocol_version"), protocolVersion);
addButton(saveProtocol);
}
@Inject(method = "drawScreen", at = @At("TAIL"))
@Inject(method = "render", at = @At("TAIL"))
private void onDrawScreen(int p_1, int p_2, float p_3, CallbackInfo ci) {
drawCenteredString(fontRenderer, I18n.format("gui.protocol_version"),this.width / 2, 12, 0xFFFFFF);
protocolVersion.drawTextField(p_1, p_2, p_3);

View File

@ -239,6 +239,21 @@ public class VRViaConfig extends Config implements ViaVersionConfig {
return this.getBoolean("minimize-cooldown", true);
}
@Override // TODO config file
public boolean isServersideBlockConnections() {
return true;
}
@Override
public String getBlockConnectionMethod() {
return "packet";
}
@Override
public boolean isReduceBlockStorageMemory() {
return false;
}
public boolean isDisable1_13AutoComplete() {
return this.getBoolean("disable-1_13-auto-complete", false);
}