-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
99 changed files
with
1,669 additions
and
593 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ build/ | |
**/run/ | ||
**.iml | ||
**.xml | ||
.name | ||
.name | ||
artifacts/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
plugins { | ||
id 'fabric-loom' version "${loom_version}" | ||
id 'legacy-looming' version "${loom_version}" | ||
id 'fabric-loom' | ||
} | ||
|
||
loom { | ||
setIntermediaryUrl('https://repo.legacyfabric.net/repository/legacyfabric/net/legacyfabric/intermediary/%1$s/intermediary-%1$s-v2.jar'); | ||
|
||
runConfigs.configureEach { | ||
ideConfigGenerated = true | ||
} | ||
} | ||
|
||
dependencies { | ||
minecraft "com.mojang:minecraft:1.13.2" | ||
mappings "net.legacyfabric:yarn:${project.yarn_1_13_2}:v2" | ||
modImplementation("net.fabricmc:fabric-loader:${project.loader_version}") | ||
runtimeOnly("net.fabricmc:dev-launch-injector:0.2.1+build.8") | ||
} |
20 changes: 0 additions & 20 deletions
20
1.13.2/src/main/java/dev/blucobalt/rbr/mixin/GameOptionsMixin.java
This file was deleted.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
1.13.2/src/main/java/dev/blucobalt/realmsfix/mixin/GameOptionsMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/** | ||
* This file is part of realmsfix. | ||
* | ||
* realmsfix is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation; either version 2.1 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* realmsfix is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with realmsfix. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package dev.blucobalt.realmsfix.mixin; | ||
|
||
|
||
import net.minecraft.client.option.GameOptions; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; | ||
|
||
|
||
@Mixin(GameOptions.class) | ||
public class GameOptionsMixin | ||
{ | ||
/** | ||
* don't let if blocks run | ||
*/ | ||
@Inject(method = "getIntVideoOptions", at = @At("RETURN"), cancellable = true) | ||
public void getIntVideoOptions(GameOptions.Option option, CallbackInfoReturnable<Boolean> cir) | ||
{ | ||
if (option == GameOptions.Option.REALMS_NOTIFICATIONS) { | ||
cir.setReturnValue(false); | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
1.13.2/src/main/java/dev/blucobalt/realmsfix/mixin/SettingsScreenMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** | ||
* This file is part of realmsfix. | ||
* | ||
* realmsfix is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation; either version 2.1 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* realmsfix is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with realmsfix. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package dev.blucobalt.realmsfix.mixin; | ||
|
||
|
||
import net.minecraft.client.gui.screen.SettingsScreen; | ||
import net.minecraft.client.gui.widget.ButtonWidget; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Redirect; | ||
|
||
|
||
@Mixin(SettingsScreen.class) | ||
public class SettingsScreenMixin | ||
{ | ||
/** | ||
* don't draw button/do nothing when it tries to add it | ||
*/ | ||
@Redirect(method = "init", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/screen/SettingsScreen;addButton(Lnet/minecraft/client/gui/widget/ButtonWidget;)Lnet/minecraft/client/gui/widget/ButtonWidget;", ordinal = 4)) | ||
public ButtonWidget donothing(SettingsScreen instance, ButtonWidget buttonWidget) | ||
{ | ||
// do nothing | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...main/resources/legacyrealmfix.mixins.json → .../src/main/resources/realmsfix.mixins.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
1.14.4/src/main/java/dev/blucobalt/rbr/mixin/SettingsScreenMixin.java
This file was deleted.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
1.14.4/src/main/java/dev/blucobalt/realmsfix/mixin/SettingsScreenMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** | ||
* This file is part of realmsfix. | ||
* | ||
* realmsfix is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation; either version 2.1 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* realmsfix is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with realmsfix. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package dev.blucobalt.realmsfix.mixin; | ||
|
||
|
||
import net.minecraft.client.gui.screen.SettingsScreen; | ||
import net.minecraft.client.gui.widget.AbstractButtonWidget; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Redirect; | ||
|
||
|
||
@Mixin(SettingsScreen.class) | ||
public class SettingsScreenMixin | ||
{ | ||
/** | ||
* don't draw button/do nothing when it tries to add it | ||
*/ | ||
@Redirect(method = "init", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/screen/SettingsScreen;addButton(Lnet/minecraft/client/gui/widget/AbstractButtonWidget;)Lnet/minecraft/client/gui/widget/AbstractButtonWidget;", ordinal = 3), expect = 0, require = 0) | ||
public AbstractButtonWidget donothing(SettingsScreen instance, AbstractButtonWidget abstractButtonWidget) | ||
{ | ||
// do nothing | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.