From d517a4ab677b346532cf07dd9e7c03c0d44b44c0 Mon Sep 17 00:00:00 2001 From: Infinityy <120841985+Inf1nityy@users.noreply.github.com> Date: Sat, 27 Jul 2024 00:48:00 +0200 Subject: [PATCH] make golden apple juice's name not italic, change map radius --- src/main/java/com/nexia/ffa/sky/utilities/FfaSkyUtil.java | 3 ++- src/main/java/com/nexia/ffa/sky/utilities/SkyFfaAreas.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/nexia/ffa/sky/utilities/FfaSkyUtil.java b/src/main/java/com/nexia/ffa/sky/utilities/FfaSkyUtil.java index dabaa830..2ec0a471 100644 --- a/src/main/java/com/nexia/ffa/sky/utilities/FfaSkyUtil.java +++ b/src/main/java/com/nexia/ffa/sky/utilities/FfaSkyUtil.java @@ -12,6 +12,7 @@ import com.nexia.nexus.builder.implementation.util.ObjectMappings; import net.fabricmc.loader.api.FabricLoader; import net.kyori.adventure.text.Component; +import net.kyori.adventure.text.format.TextDecoration; import net.kyori.adventure.text.minimessage.MiniMessage; import net.minecraft.core.BlockPos; import net.minecraft.sounds.SoundEvents; @@ -191,7 +192,7 @@ public void finishSendToSpawn(NexiaPlayer player) { private static ItemStack gApplePotion() { ItemStack potion = new ItemStack(Items.POTION); - potion.setHoverName(ObjectMappings.convertComponent(MiniMessage.get().parse(String.format("Golden Apple Juice", "#ffaa00", "#ffc40e")))); + potion.setHoverName(ObjectMappings.convertComponent(MiniMessage.get().parse(String.format("Golden Apple Juice", "#ffaa00", "#ffc40e")).decoration(TextDecoration.ITALIC, false))); potion.getOrCreateTag().putInt("CustomPotionColor", 16771584); ArrayList effects = new ArrayList<>(); diff --git a/src/main/java/com/nexia/ffa/sky/utilities/SkyFfaAreas.java b/src/main/java/com/nexia/ffa/sky/utilities/SkyFfaAreas.java index ec68a93f..2ce4dc9e 100644 --- a/src/main/java/com/nexia/ffa/sky/utilities/SkyFfaAreas.java +++ b/src/main/java/com/nexia/ffa/sky/utilities/SkyFfaAreas.java @@ -25,7 +25,7 @@ public class SkyFfaAreas implements FfaAreas { public static EntityPos spawn = new EntityPos(0.5, 90, 0.5, 0, 0); - private static final int mapRadius = 30; + private static final int mapRadius = 40; public static final int buildLimitY = 90; public static BlockPos spawnCorner1 = spawn.toBlockPos().offset(-6, -5, -6);