your current location:首页 > news>no null processors minecraft

no null processors minecraft

2024-12-15 02:37:04|Myriagame |source:minecraft skins

introduce

At present is the front of the 1.17+ version of the structure variant, and a Minecraft original error has also been repaired.

Note: 1.18.2 Fixed an air processor, so this MC version and update version no longer need this module!

question

Have you been trying to use most of the blocks that predict the pre -generated module to generate the world, and continue to collapse and have this error?

 caused by: java.lang.nullpointerexception: Cannot Invoke "net.mineCraft.Processor.StruturessorList.g.g ETLIST () "BeCAUSE The RETURN VALUE of" Java.util.Function.Supplier.get () "is null at network.mineCraft.Struction.pool.SINGLEPOOLELEMENT.CREATEPLACEMANTATA (SINGLEPOOLELEMENT: 148) ~ [?:?] at network Ol.SINGLEPOOOOLEMENT.GENTE (SinglePoolement: 124) ~ [? [?] Caused by: java.lang.nullpointerexception: Cannot Invoke "Net.mineCraft.class_5497.Method_31027 ()" BeCAUSE The RETURN VALUE of "Java .util.function.supplier.get () "is null at network.Structure.Pool.SinglePoolement.createPlacementData (SinglePoolement: 148) ~ [?:?] at net.mineCraft.Pool.SINGLEPOOLEMENT.GENTE (SINGLEPOOLELEMENEN t: 124) ~ [?:?] 

describe

If so, congratulations!You found a very weird bug in 1.17.1 Minecraft!This module aims to solve this problem.

The bug is difficult to explain, but it will basically trigger it. You need a MOD or packet that contains a processor list created by the creation of the world JSON file.All blocks containing the structure using the JSON processor list.Randomly, this may collapse due to the empty processor list.

What is going on?Well, there is a processor list registry inside Minecraft, which should be created at the time of the world.Then, when the game needs it, it will get it from the registry, but it should not rewrite the registry during runtime.Because it would be bad, right?

When creating a structure layout during the creation of the world, the game will save the layout and which parts are added to the block itself.Then, with the construction of the block, it will be loaded from the block to generate in the world.In addition to reading the structure part from the block, it also needs to read the processor list attached to this part to understand which processor should be run for this part.It was here that BUG appeared.The code of reading the processor list is incorrect. It will get the processor it reads and register it to the registry again, replace itself to itself, and then use it.

And this register is not safe to replace itself.And because Minecraft creates a block in multi -threaded ... there is a point that can try to read/write the same exact entry in the registry even if the two structure blocks of the same processor are used.When this rare collision occurs, one of the structure parts may eventually have an air processor, and then the game crashes because the game cannot handle the problem of generating air processors because it does not exist!Is it weird?The debugging is super strange and painful, but thanks to another module producer, we can solve this problem and create this repair program.As far as we know, 1.16.5 has no such problem.The problem starts from 1.17+ and lasts to 1.18.1.However, 1.18.2 fixed this bug.The repair made by this MOD is the registration name of its cache for the list of each processor list, so it only writes itself into the registry and is re -used permanently, thereby avoiding multiple reading/writing of the same specific registry item item multiple times.Question.(Theoretical)

Hope this is helpful for you!

Minecraft images

Minecraft images

Minecraft images

In addition to other statements, MCMOD.CN, all open public editing content uses the BY-NC-SA 3.0 protocol.