0
0
mirror of https://github.com/Wurst-Imperium/Wurst7.git synced 2024-09-19 17:02:13 +02:00

Update tp 24w37a

This commit is contained in:
Alexander01998 2024-09-11 20:03:27 +02:00
parent 718c26eec6
commit 50fa30c5c7
5 changed files with 9 additions and 8 deletions

View File

@ -96,7 +96,7 @@ public final class PotionCmd extends Command
stack.set(DataComponentTypes.POTION_CONTENTS,
new PotionContentsComponent(potion, oldContents.customColor(),
effects));
effects, oldContents.customName()));
ChatUtils.message("Potion modified.");
}
@ -128,7 +128,7 @@ public final class PotionCmd extends Command
: oldContents.potion();
stack.set(DataComponentTypes.POTION_CONTENTS,
new PotionContentsComponent(newPotion, oldContents.customColor(),
newEffects));
newEffects, oldContents.customName()));
ChatUtils.message("Effect removed.");
}

View File

@ -116,7 +116,7 @@ public final class KillPotionHack extends Hack
PotionContentsComponent potionContents =
new PotionContentsComponent(Optional.empty(), Optional.empty(),
List.of(effect));
List.of(effect), Optional.empty());
stack.set(DataComponentTypes.POTION_CONTENTS, potionContents);

View File

@ -124,7 +124,7 @@ public final class TrollPotionHack extends Hack
stack.set(DataComponentTypes.POTION_CONTENTS,
new PotionContentsComponent(Optional.empty(), Optional.empty(),
effects));
effects, Optional.empty()));
String name = "\u00a7f" + itemName + " of Trolling";
stack.set(DataComponentTypes.CUSTOM_NAME, Text.literal(name));

View File

@ -38,8 +38,9 @@ public abstract class TitleScreenMixin extends Screen
* Adds the AltManager button to the title screen. This mixin must not
* run in demo mode, as the Realms button doesn't exist there.
*/
@Inject(at = @At("RETURN"), method = "initWidgetsNormal(II)V")
private void onInitWidgetsNormal(int y, int spacingY, CallbackInfo ci)
@Inject(at = @At("RETURN"), method = "initWidgetsNormal(II)I")
private void onInitWidgetsNormal(int y, int spacingY,
CallbackInfoReturnable<Integer> cir)
{
if(!WurstClient.INSTANCE.isEnabled())
return;

View File

@ -26,8 +26,8 @@
"accessWidener": "wurst.accesswidener",
"depends": {
"fabricloader": ">=0.16.3",
"fabric-api": ">=0.103.2",
"minecraft": "~1.21.2-alpha.24.36.a",
"fabric-api": ">=0.104.1",
"minecraft": "~1.21.2-alpha.24.37.a",
"java": ">=21"
},
"suggests": {