mojira.dev
MC-313762

Monster spawners with wide negative `MinSpawnDelay` and large `MaxSpawnDelay` crash the game

When a monster spawner has MinSpawnDelay set to -2000000000 and MaxSpawnDelay set to 2000000000, the game crashes.


Steps to reproduce:

  • Create a new world.

  • Run the following command:

    /setblock ~ ~ ~ minecraft:spawner{Delay:1s,MinSpawnDelay:-2000000000,MaxSpawnDelay:2000000000}
  • Wait one tick for the spawner to trigger and observe the crash.


Observed result:
The game crashes

Expected result:
MinSpawnDelay and MaxSpawnDelay should be validated or clamped.

Comments 0

No comments.

BugTracker - BugTX

(Unassigned)

Unconfirmed

26.3

Retrieved