[SPIGOT-4783] CreatureSpawnEvent causes crash when getting block type Created: 26/Apr/19  Updated: 27/Apr/19  Resolved: 27/Apr/19

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Jocke155 Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: 1.14, Event, crash
Environment:

Window 10, Java 11


Attachments: File BlockGetType.jar     Zip Archive BlockGetType.src.zip     Java Source File Main.java     Text File log.txt    
Version: CraftBukkit version git-Spigot-47463c2-6de3aa1 (MC: 1.14) (Implementing API version 1.14-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

When getting the block type at the location of a creature spawn in CreatureSpawnEvent the server crashes. Does not happen on Spigot 1.13.2. Cannot be tested on Vanilla.

Steps to reproduce:

  1. Put BlockGetType.jar in the plugins folder.
  2. Login and let a creature spawn.

 

Time spent on 1-8: 30 Minutes.



 Comments   
Comment by md_5 [ 27/Apr/19 ]

No real choice but to remove the event for chunk gen at this point.

Moving it to a later point would have the event inconsistent.

I've left javadoc notes for how to get the same effect

Comment by md_5 [ 26/Apr/19 ]

Very complicated issue - the new world loader is prone to deadlocking itself.

The event call has been moved as late as possible without being too late, but it seems this is not late enough

Generated at Tue Apr 22 04:54:50 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.