mirror of
https://github.com/Wurst-Imperium/Wurst7.git
synced 2024-09-20 01:12:13 +02:00
Update tp 24w37a
This commit is contained in:
parent
718c26eec6
commit
50fa30c5c7
@ -96,7 +96,7 @@ public final class PotionCmd extends Command
|
|||||||
|
|
||||||
stack.set(DataComponentTypes.POTION_CONTENTS,
|
stack.set(DataComponentTypes.POTION_CONTENTS,
|
||||||
new PotionContentsComponent(potion, oldContents.customColor(),
|
new PotionContentsComponent(potion, oldContents.customColor(),
|
||||||
effects));
|
effects, oldContents.customName()));
|
||||||
ChatUtils.message("Potion modified.");
|
ChatUtils.message("Potion modified.");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -128,7 +128,7 @@ public final class PotionCmd extends Command
|
|||||||
: oldContents.potion();
|
: oldContents.potion();
|
||||||
stack.set(DataComponentTypes.POTION_CONTENTS,
|
stack.set(DataComponentTypes.POTION_CONTENTS,
|
||||||
new PotionContentsComponent(newPotion, oldContents.customColor(),
|
new PotionContentsComponent(newPotion, oldContents.customColor(),
|
||||||
newEffects));
|
newEffects, oldContents.customName()));
|
||||||
|
|
||||||
ChatUtils.message("Effect removed.");
|
ChatUtils.message("Effect removed.");
|
||||||
}
|
}
|
||||||
|
@ -116,7 +116,7 @@ public final class KillPotionHack extends Hack
|
|||||||
|
|
||||||
PotionContentsComponent potionContents =
|
PotionContentsComponent potionContents =
|
||||||
new PotionContentsComponent(Optional.empty(), Optional.empty(),
|
new PotionContentsComponent(Optional.empty(), Optional.empty(),
|
||||||
List.of(effect));
|
List.of(effect), Optional.empty());
|
||||||
|
|
||||||
stack.set(DataComponentTypes.POTION_CONTENTS, potionContents);
|
stack.set(DataComponentTypes.POTION_CONTENTS, potionContents);
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ public final class TrollPotionHack extends Hack
|
|||||||
|
|
||||||
stack.set(DataComponentTypes.POTION_CONTENTS,
|
stack.set(DataComponentTypes.POTION_CONTENTS,
|
||||||
new PotionContentsComponent(Optional.empty(), Optional.empty(),
|
new PotionContentsComponent(Optional.empty(), Optional.empty(),
|
||||||
effects));
|
effects, Optional.empty()));
|
||||||
|
|
||||||
String name = "\u00a7f" + itemName + " of Trolling";
|
String name = "\u00a7f" + itemName + " of Trolling";
|
||||||
stack.set(DataComponentTypes.CUSTOM_NAME, Text.literal(name));
|
stack.set(DataComponentTypes.CUSTOM_NAME, Text.literal(name));
|
||||||
|
@ -38,8 +38,9 @@ public abstract class TitleScreenMixin extends Screen
|
|||||||
* Adds the AltManager button to the title screen. This mixin must not
|
* Adds the AltManager button to the title screen. This mixin must not
|
||||||
* run in demo mode, as the Realms button doesn't exist there.
|
* run in demo mode, as the Realms button doesn't exist there.
|
||||||
*/
|
*/
|
||||||
@Inject(at = @At("RETURN"), method = "initWidgetsNormal(II)V")
|
@Inject(at = @At("RETURN"), method = "initWidgetsNormal(II)I")
|
||||||
private void onInitWidgetsNormal(int y, int spacingY, CallbackInfo ci)
|
private void onInitWidgetsNormal(int y, int spacingY,
|
||||||
|
CallbackInfoReturnable<Integer> cir)
|
||||||
{
|
{
|
||||||
if(!WurstClient.INSTANCE.isEnabled())
|
if(!WurstClient.INSTANCE.isEnabled())
|
||||||
return;
|
return;
|
||||||
|
@ -26,8 +26,8 @@
|
|||||||
"accessWidener": "wurst.accesswidener",
|
"accessWidener": "wurst.accesswidener",
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=0.16.3",
|
"fabricloader": ">=0.16.3",
|
||||||
"fabric-api": ">=0.103.2",
|
"fabric-api": ">=0.104.1",
|
||||||
"minecraft": "~1.21.2-alpha.24.36.a",
|
"minecraft": "~1.21.2-alpha.24.37.a",
|
||||||
"java": ">=21"
|
"java": ">=21"
|
||||||
},
|
},
|
||||||
"suggests": {
|
"suggests": {
|
||||||
|
Loading…
Reference in New Issue
Block a user