mirror of
https://github.com/chylex/Better-Sprinting.git
synced 2025-04-09 18:15:41 +02:00
Update Minecraft to 1.15.2 & fix compile errors
This commit is contained in:
parent
41327a4da1
commit
8fb56b3172
@ -13,8 +13,8 @@ buildscript{
|
||||
apply plugin: 'net.minecraftforge.gradle'
|
||||
apply plugin: 'eclipse'
|
||||
|
||||
def mcversion = "1.15.1"
|
||||
def forgeversion = "30.0.15"
|
||||
def mcversion = "1.15.2"
|
||||
def forgeversion = "31.0.14"
|
||||
|
||||
def prefixName = 'displayName = '
|
||||
def prefixVersion = 'version = '
|
||||
@ -30,7 +30,7 @@ archivesBaseName = metaName.replaceAll('\\s', '')
|
||||
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
|
||||
|
||||
minecraft{
|
||||
mappings channel: 'snapshot', version: '20191221-1.14.3'
|
||||
mappings channel: 'snapshot', version: '20200130-1.15.1'
|
||||
|
||||
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
||||
|
||||
|
@ -98,7 +98,7 @@ public final class ClientSettings{
|
||||
keyInfoSprintHold.readFrom(settings.keyBindSprint);
|
||||
|
||||
KeyModifier sprintModifier = getVanillaKeyModifier(settings.keyBindSprint);
|
||||
KeyModifier sneakModifier = getVanillaKeyModifier(settings.field_228046_af_);
|
||||
KeyModifier sneakModifier = getVanillaKeyModifier(settings.keyBindSneak);
|
||||
|
||||
if (sprintModifier != KeyModifier.NONE){
|
||||
keyInfoSprintToggle.set(sprintModifier, InputMappings.Type.KEYSYM.getOrMakeInput(GLFW.GLFW_KEY_G));
|
||||
|
@ -16,7 +16,7 @@ final class MovementController{
|
||||
public MovementController(MovementInput movementInput){
|
||||
this.movementInput = movementInput;
|
||||
this.sprintToggle = new ToggleTracker(ClientModManager.keyBindSprintToggle, ClientModManager.keyBindSprintHold);
|
||||
this.sneakToggle = new ToggleTracker(ClientModManager.keyBindSneakToggle, mc.gameSettings.field_228046_af_);
|
||||
this.sneakToggle = new ToggleTracker(ClientModManager.keyBindSneakToggle, mc.gameSettings.keyBindSneak);
|
||||
}
|
||||
|
||||
// UPDATE | Ensure first parameter of MovementInputFromOptions.func_217607_a still behaves like forced sneak | 1.15.1
|
||||
|
@ -1,5 +1,5 @@
|
||||
modLoader = "javafml"
|
||||
loaderVersion = "[30,)"
|
||||
loaderVersion = "[31,)"
|
||||
|
||||
authors = "chylex"
|
||||
issueTrackerURL = "https://github.com/chylex/Better-Sprinting/issues"
|
||||
@ -22,13 +22,13 @@ Find me on Twitter: https://twitter.com/chylexmc
|
||||
[[dependencies.bettersprinting]]
|
||||
modId = "minecraft"
|
||||
mandatory = true
|
||||
versionRange = "[1.15.1]"
|
||||
versionRange = "[1.15.2]"
|
||||
ordering = "NONE"
|
||||
side = "BOTH"
|
||||
|
||||
[[dependencies.bettersprinting]]
|
||||
modId = "forge"
|
||||
mandatory = true
|
||||
versionRange = "[30,)"
|
||||
versionRange = "[31,)"
|
||||
ordering = "NONE"
|
||||
side = "BOTH"
|
||||
|
Loading…
Reference in New Issue
Block a user