Sedridor / B3M

Вращение Земли Майнкрафтская
5 stars 0 forks source link

Date cannot be modified normally #4

Open Ironnoob73 opened 2 years ago

Ironnoob73 commented 2 years ago

I tried to modify the start date in confing, but after the modification only the year takes effect, the date and month are always January 1st.I tried changing the date in-game, but the command doesn't work and I get an error.

[15:54:47] [Server thread/WARN]: Couldn't process command: b3m set date 1 6 2100
net.minecraft.util.text.TextComponentTranslationFormatException: Error parsing: TranslatableComponent{key='[B3M] Date set to %d-%d-%04d (%s)', args=[1, 6, 2100, 18390864105], siblings=[], style=Style{hasParent=true, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}: Unsupported format: '%d'
    at net.minecraft.util.text.TextComponentTranslation.initializeFromFormat(SourceFile:96) ~[hp.class:?]
    at net.minecraft.util.text.TextComponentTranslation.ensureInitialized(SourceFile:51) ~[hp.class:?]
    at net.minecraft.util.text.TextComponentTranslation.iterator(SourceFile:152) ~[hp.class:?]
    at net.minecraft.util.text.TextComponentBase$1.apply(TextComponentBase.java:103) ~[he$1.class:?]
    at net.minecraft.util.text.TextComponentBase$1.apply(TextComponentBase.java:100) ~[he$1.class:?]
    at com.google.common.collect.Iterators$7.transform(Iterators.java:750) ~[guava-21.0.jar:?]
    at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:47) ~[guava-21.0.jar:?]
    at com.google.common.collect.MultitransformedIterator.hasNext(MultitransformedIterator.java:52) ~[guava-21.0.jar:?]
    at com.google.common.collect.MultitransformedIterator.hasNext(MultitransformedIterator.java:50) ~[guava-21.0.jar:?]
    at com.google.common.collect.TransformedIterator.hasNext(TransformedIterator.java:42) ~[guava-21.0.jar:?]
    at com.google.common.collect.MultitransformedIterator.hasNext(MultitransformedIterator.java:47) ~[guava-21.0.jar:?]
    at net.minecraft.util.text.TextComponentBase.getUnformattedText(TextComponentBase.java:70) ~[he.class:?]
    at net.minecraft.server.MinecraftServer.sendMessage(MinecraftServer.java:953) ~[MinecraftServer.class:?]
    at net.minecraft.command.ServerCommandManager.notifyListener(SourceFile:123) ~[dh.class:?]
    at net.minecraft.command.CommandBase.notifyCommandListener(CommandBase.java:891) ~[bi.class:?]
    at net.minecraft.command.CommandBase.notifyCommandListener(CommandBase.java:884) ~[bi.class:?]
    at sedridor.B3M.CommandTimeMultiplier.execute(CommandTimeMultiplier.java:704) ~[CommandTimeMultiplier.class:?]
    at net.minecraft.command.CommandHandler.tryExecute(CommandHandler.java:119) [bj.class:?]
    at net.minecraft.command.CommandHandler.executeCommand(CommandHandler.java:91) [bj.class:?]
    at net.minecraft.network.NetHandlerPlayServer.handleSlashCommand(NetHandlerPlayServer.java:962) [pa.class:?]
    at net.minecraft.network.NetHandlerPlayServer.processChatMessage(NetHandlerPlayServer.java:941) [pa.class:?]
    at net.minecraft.network.play.client.CPacketChatMessage.processPacket(SourceFile:37) [la.class:?]
    at net.minecraft.network.play.client.CPacketChatMessage.processPacket(SourceFile:9) [la.class:?]
    at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:22) [hv$1.class:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_252]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_252]
    at net.minecraft.util.Util.runTask(Util.java:529) [h.class:?]
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:723) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:668) [MinecraftServer.class:?]
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:279) [chd.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]