PercyDan54 / BorderRemover

A Minecraft mod for removing the 30,000,000 block limit and (optionally) brings back the farlands
27 stars 6 forks source link

1.20.1 fabric #19

Closed Mysticpasta1 closed 3 months ago

Mysticpasta1 commented 3 months ago

Update to 1.20.1 fabric, I would also like this on Curseforge pls

PercyDan54 commented 3 months ago

Afaik this already works on 1.20.1 so I didn't update the game dependency to avoid break old versions if possible, is there anything I missed?

Mysticpasta1 commented 3 months ago
 if (time > 0L) {
            worldBorder.interpolateSize(d, distance, time);
            if (distance > d) {
                source.sendFeedback(Text.translatable("commands.worldborder.set.grow", String.format(Locale.ROOT, "%.1f", distance), Long.toString(time / 1000L)), true);
                source.sendFeedback(() -> Text.translatable("commands.worldborder.set.grow", String.format(Locale.ROOT, "%.1f", distance), Long.toString(time / 1000L)), true);
            } else {
                source.sendFeedback(Text.translatable("commands.worldborder.set.shrink", String.format(Locale.ROOT, "%.1f", distance), Long.toString(time / 1000L)), true);
                source.sendFeedback(() -> Text.translatable("commands.worldborder.set.shrink", String.format(Locale.ROOT, "%.1f", distance), Long.toString(time / 1000L)), true);
            }
        } else {
            worldBorder.setSize(distance);
            source.sendFeedback(Text.translatable("commands.worldborder.set.immediate", String.format(Locale.ROOT, "%.1f", distance)), true);
            source.sendFeedback(() -> Text.translatable("commands.worldborder.set.immediate", String.format(Locale.ROOT, "%.1f", distance)), true);
        }
        return (int) (distance - d);
    }
Mysticpasta1 commented 3 months ago

the Text.translatable's are now Suppilers

Mysticpasta1 commented 3 months ago

so it breaks on 1.20.1 fabric

there are also updates for cloth config and mod menu

Mysticpasta1 commented 3 months ago

can you also add it to Curseforge pls :D

PercyDan54 commented 3 months ago

can you also add it to Curseforge pls :D

Curseforge sucked so I may consider uploading to Modrinth, but I was too lazy to write the description thing for it

PercyDan54 commented 3 months ago

so it breaks on 1.20.1 fabric

there are also updates for cloth config and mod menu

What about #20