GregTechCEu Modern

GregTechCEu Modern

6M Downloads

Game reports error when gamemode is creative and I take out a tool with enchantment

Water-Gate-King opened this issue ยท 0 comments

commented

Checked for existing issues

  • I have checked for existing issues, and have found none.

Tested latest version

  • I have checked that this occurs on the latest version.

GregTech CEu Version

v1.4.0

Minecraft Version

1.21.1

Recipe Viewer Installed

None

Environment

Singleplayer

Cross-Mod Interaction

No

Other Installed Mods

not have

Expected Behavior

I take out a tool with enchantment, like a flint pickaxe, when gamemode is creative.
If gamemode is survival, I make a tool with enchantment, and use it normally.

Actual Behavior

creative:
image

survival:mining speed is a negative number, cannot be used to destroy.
image

Steps to Reproduce

creative: take out a tool with enchantment.
survival: use crafting table make a tool with enchantment

Additional Information

---- Minecraft Network Protocol Error Report ----
// Maybe this time it will work!

Time: 2024-08-24 22:12:23
Description: Packet handling error

io.netty.handler.codec.EncoderException: Failed to encode packet 'serverbound/minecraft:set_creative_mode_slot'
at TRANSFORMER/[email protected]/net.minecraft.network.codec.IdDispatchCodec.encode(IdDispatchCodec.java:55) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.IdDispatchCodec.encode(IdDispatchCodec.java:14) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.neoforged.neoforge.network.filters.GenericPacketSplitter.encode(GenericPacketSplitter.java:104) ~[neoforge-21.1.23-universal.jar%23182!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.neoforged.neoforge.network.filters.GenericPacketSplitter.encode(GenericPacketSplitter.java:39) ~[neoforge-21.1.23-universal.jar%23182!/:?] {re:classloading}
at MC-BOOTSTRAP/[email protected]/io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:90) ~[netty-codec-4.1.97.Final.jar%23114!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:881) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:863) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:968) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:856) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.ChannelOutboundHandlerAdapter.write(ChannelOutboundHandlerAdapter.java:113) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at TRANSFORMER/[email protected]/net.minecraft.network.Connection$2.write(Connection.java:528) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:881) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:940) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:966) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:934) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:984) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1025) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:306) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at TRANSFORMER/[email protected]/net.minecraft.network.Connection.doSendPacket(Connection.java:364) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading,re:mixin}
at TRANSFORMER/[email protected]/net.minecraft.network.Connection.lambda$sendPacket$12(Connection.java:359) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading,re:mixin}
at MC-BOOTSTRAP/[email protected]/io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) ~[netty-common-4.1.97.Final.jar%23115!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.DefaultEventLoop.run(DefaultEventLoop.java:54) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.97.Final.jar%23115!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.97.Final.jar%23115!/:4.1.97.Final] {}
at java.base/java.lang.Thread.run(Thread.java:1583) [?:?] {re:mixin}
Caused by: java.lang.IllegalArgumentException: Can't find id for 'Reference{ResourceKey[minecraft:enchantment / minecraft:fortune]=Enchantment Fortune}' in map net.minecraft.core.Registry$1@565de9f7
at TRANSFORMER/[email protected]/net.minecraft.core.IdMap.getIdOrThrow(IdMap.java:27) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading,re:mixin}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.ByteBufCodecs$25.encode(ByteBufCodecs.java:479) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.ByteBufCodecs$25.encode(ByteBufCodecs.java:464) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.ByteBufCodecs$22.lambda$encode$0(ByteBufCodecs.java:405) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at MC-BOOTSTRAP/[email protected]/it.unimi.dsi.fastutil.objects.Object2IntMap.lambda$forEach$0(Object2IntMap.java:245) ~[fastutil-8.5.12.jar%23121!/:?] {}
at MC-BOOTSTRAP/[email protected]/it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap$MapEntrySet.fastForEach(Object2IntOpenHashMap.java:1078) ~[fastutil-8.5.12.jar%23121!/:?] {}
at MC-BOOTSTRAP/[email protected]/it.unimi.dsi.fastutil.objects.Object2IntMap.forEach(Object2IntMap.java:247) ~[fastutil-8.5.12.jar%23121!/:?] {}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.ByteBufCodecs$22.encode(ByteBufCodecs.java:404) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.ByteBufCodecs$22.encode(ByteBufCodecs.java:401) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.StreamCodec$8.encode(StreamCodec.java:156) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.core.component.DataComponentPatch$1.encodeComponent(DataComponentPatch.java:127) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.core.component.DataComponentPatch$1.encode(DataComponentPatch.java:111) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.core.component.DataComponentPatch$1.encode(DataComponentPatch.java:58) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.world.item.ItemStack$1.encode(ItemStack.java:151) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.world.item.ItemStack$1.encode(ItemStack.java:131) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.world.item.ItemStack$3.encode(ItemStack.java:215) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.world.item.ItemStack$3.encode(ItemStack.java:203) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.StreamCodec$8.encode(StreamCodec.java:157) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.StreamCodec$5.encode(StreamCodec.java:97) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.StreamCodec$5.encode(StreamCodec.java:87) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.IdDispatchCodec.encode(IdDispatchCodec.java:53) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
... 24 more

A detailed walkthrough of the error, its code path and all known details is as follows:

-- Head --
Thread: Netty Local Client IO #0
Stacktrace:
at TRANSFORMER/[email protected]/net.minecraft.network.PacketListener.fillCrashReport(PacketListener.java:33) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading,re:mixin}
-- Connection --
Details:
Protocol: play
Flow: CLIENTBOUND
Server type:
Server brand: neoforge
Stacktrace:
at TRANSFORMER/[email protected]/net.minecraft.network.PacketListener.fillCrashReport(PacketListener.java:33) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading,re:mixin}
at TRANSFORMER/[email protected]/net.minecraft.network.protocol.PacketUtils.fillCrashReport(PacketUtils.java:62) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl.storeDisconnectionReport(ClientCommonPacketListenerImpl.java:130) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:mixin,pl:runtimedistcleaner:A,re:classloading,pl:runtimedistcleaner:A}
at TRANSFORMER/[email protected]/net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl.createDisconnectionInfo(ClientCommonPacketListenerImpl.java:123) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:mixin,pl:runtimedistcleaner:A,re:classloading,pl:runtimedistcleaner:A}
at TRANSFORMER/[email protected]/net.minecraft.network.Connection.exceptionCaught(Connection.java:157) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading,re:mixin}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannelHandlerContext.java:346) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannelHandlerContext.java:325) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.fireExceptionCaught(AbstractChannelHandlerContext.java:317) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.DefaultChannelPipeline$HeadContext.exceptionCaught(DefaultChannelPipeline.java:1377) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannelHandlerContext.java:346) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannelHandlerContext.java:325) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.DefaultChannelPipeline.fireExceptionCaught(DefaultChannelPipeline.java:907) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.ChannelFutureListener$3.operationComplete(ChannelFutureListener.java:69) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.ChannelFutureListener$3.operationComplete(ChannelFutureListener.java:65) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:590) ~[netty-common-4.1.97.Final.jar%23115!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:557) ~[netty-common-4.1.97.Final.jar%23115!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:492) ~[netty-common-4.1.97.Final.jar%23115!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.util.concurrent.DefaultPromise.addListener(DefaultPromise.java:185) ~[netty-common-4.1.97.Final.jar%23115!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.DefaultChannelPromise.addListener(DefaultChannelPromise.java:95) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.DefaultChannelPromise.addListener(DefaultChannelPromise.java:30) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at TRANSFORMER/[email protected]/net.minecraft.network.Connection.doSendPacket(Connection.java:379) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading,re:mixin}
at TRANSFORMER/[email protected]/net.minecraft.network.Connection.lambda$sendPacket$12(Connection.java:359) ~[client-1.21.1-20240808.144430-srg.jar%23181!/:?] {re:classloading,re:mixin}
at MC-BOOTSTRAP/[email protected]/io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) ~[netty-common-4.1.97.Final.jar%23115!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.DefaultEventLoop.run(DefaultEventLoop.java:54) ~[netty-transport-4.1.97.Final.jar%23120!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.97.Final.jar%23115!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.97.Final.jar%23115!/:4.1.97.Final] {}
at java.base/java.lang.Thread.run(Thread.java:1583) [?:?] {re:mixin}

-- System Details --
Details:
Minecraft Version: 1.21.1
Minecraft Version ID: 1.21.1
Operating System: Windows 11 (amd64) version 10.0
Java Version: 21.0.3, Microsoft
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
Memory: 1220884128 bytes (1164 MiB) / 2369781760 bytes (2260 MiB) up to 6979321856 bytes (6656 MiB)
CPUs: 8
Processor Vendor: AuthenticAMD
Processor Name: AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx
Identifier: AuthenticAMD Family 23 Model 17 Stepping 0
Microarchitecture: Zen
Frequency (GHz): 2.00
Number of physical packages: 1
Number of physical CPUs: 4
Number of logical CPUs: 8
Graphics card #0 name: AMD Radeon(TM) Vega 8 Graphics
Graphics card #0 vendor: Advanced Micro Devices, Inc.
Graphics card #0 VRAM (MiB): 1024.00
Graphics card #0 deviceId: VideoController1
Graphics card #0 versionInfo: 31.0.21916.2
Memory slot #0 capacity (MiB): 4096.00
Memory slot #0 clockSpeed (GHz): 2.40
Memory slot #0 type: DDR4
Memory slot #1 capacity (MiB): 4096.00
Memory slot #1 clockSpeed (GHz): 2.40
Memory slot #1 type: DDR4
Virtual memory max (MiB): 21917.58
Virtual memory used (MiB): 12457.97
Swap memory total (MiB): 14848.00
Swap memory used (MiB): 1566.95
Space in storage for jna.tmpdir (MiB): available: 238560.91, total: 394368.00
Space in storage for org.lwjgl.system.SharedLibraryExtractPath (MiB): available: 238560.91, total: 394368.00
Space in storage for io.netty.native.workdir (MiB): available: 238560.91, total: 394368.00
Space in storage for java.io.tmpdir (MiB): available: 2655.56, total: 81920.00
Space in storage for workdir (MiB): available: 238560.91, total: 394368.00
JVM Flags: 6 total; -XX:+UseG1GC -XX:-UseAdaptiveSizePolicy -XX:-OmitStackTraceInFastThrow -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmn998m -Xmx6656m
ModLauncher: 11.0.4+main.d2e20e43
ModLauncher launch target: forgeclient
ModLauncher services:
sponge-mixin-0.14.0+mixin.0.8.6.jar mixin PLUGINSERVICE
loader-4.0.24.jar slf4jfixer PLUGINSERVICE
loader-4.0.24.jar runtime_enum_extender PLUGINSERVICE
at-modlauncher-10.0.1.jar accesstransformer PLUGINSERVICE
loader-4.0.24.jar runtimedistcleaner PLUGINSERVICE
modlauncher-11.0.4.jar mixin TRANSFORMATIONSERVICE
modlauncher-11.0.4.jar fml TRANSFORMATIONSERVICE
FML Language Providers:
[email protected]
[email protected]
[email protected]
Mod List:
client-1.21.1-20240808.144430-srg.jar |Minecraft |minecraft |1.21.1 |Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f
configuration-444699-5573796.jar |Configuration |configuration |2.3.1 |Manifest: NOSIGNATURE
ldlib-neoforge-1.21.1-1.0.26.c.jar |LowDragLib |ldlib |1.0.26.c |Manifest: NOSIGNATURE
gtceu-1.21.1-1.4.0.jar |GregTech |gtceu |1.4.0 |Manifest: NOSIGNATURE
neoforge-21.1.23-universal.jar |NeoForge |neoforge |21.1.23 |Manifest: NOSIGNATURE
Crash Report UUID: ccd1c0dc-5a51-4cc0-8349-4e4f718d3fd6
FML: 4.0.24
NeoForge: 21.1.23