Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 12:30:06 +01:00
18c3716c49
This enables us a fast reference to the entities current chunk instead of having to look it up by hashmap lookups. We also store counts by type to further enable other performance optimizations in later patches.
22 Zeilen
832 B
Diff
22 Zeilen
832 B
Diff
From 9d2c2c0c6e0763a163a8a52d4e8323e853c19cb1 Mon Sep 17 00:00:00 2001
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
|
Date: Sat, 14 Jan 2017 01:22:07 -0600
|
|
Subject: [PATCH] Assign the World in WorldGenStronghold
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/WorldGenStronghold.java b/src/main/java/net/minecraft/server/WorldGenStronghold.java
|
|
index c93754704..a3b958e01 100644
|
|
--- a/src/main/java/net/minecraft/server/WorldGenStronghold.java
|
|
+++ b/src/main/java/net/minecraft/server/WorldGenStronghold.java
|
|
@@ -56,6 +56,7 @@ public class WorldGenStronghold extends StructureGenerator {
|
|
}
|
|
|
|
public BlockPosition getNearestGeneratedFeature(World world, BlockPosition blockposition, boolean flag) {
|
|
+ this.g = world; // Paper
|
|
if (!this.b) {
|
|
this.c();
|
|
this.b = true;
|
|
--
|
|
2.18.0
|
|
|