1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-04-17 19:12:07 +02:00

Merge pull request from Spottedleaf/patch-1

Add world name to blockstate location if we fail to read it
This commit is contained in:
Riley Park 2019-06-18 12:24:02 -07:00
commit c505668f4e

View file

@ -26,7 +26,7 @@ index 7cb4c3e503..a593882988 100644
+ if (thr instanceof ThreadDeath) {
+ throw (ThreadDeath)thr;
+ }
+ throw new RuntimeException("Failed to read BlockState at location: (" + block.getX() + ", " + block.getY() + ", " + block.getZ() + ")", thr);
+ throw new RuntimeException("Failed to read BlockState at: world: " + block.getWorld().getName() + " location: (" + block.getX() + ", " + block.getY() + ", " + block.getZ() + ")", thr);
+ }
+ // Paper end
}