The Bug:
The server becomes unresponsive and eventually crashes when villagers with very low restock counts restock.
Steps to Reproduce:
Place down a lectern.
Place down a command block next to the lectern and paste the following command into it.
/summon minecraft:villager ~ ~1 ~ {VillagerData:{profession:"minecraft:librarian",level:5},Xp:250,RestocksToday:-2147483645,LastRestock:-24000L,Offers:{Recipes:[{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:book"}}]}}Activate the command block so a villager is spawned.
Set the time to noon.
Once the villager works at the lectern, try to perform actions like throwing items on the ground and observe how the server is unresponsive.
Observed Behavior:
The server becomes unresponsive and eventually crashes.
Expected Behavior:
The server would not become unresponsive or crash.
Comments 0
No comments.