mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 15:49:00 +01:00
remove potentially bad check
This commit is contained in:
parent
73c44798c5
commit
b91603c782
1 changed files with 2 additions and 5 deletions
|
@ -14,12 +14,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
|
||||
+ // Paper start - Try to catch plugins doing indecent things
|
||||
+ boolean ignoreAdd = false;
|
||||
+ if (entity.aa) {
|
||||
+ boolean thisChunk = entity.getChunkX() == this.locX && entity.getChunkY() == k && entity.getChunkZ() == this.locZ;
|
||||
+ if (entity.aa && entity.getChunkX() == this.locX && entity.getChunkY() == k && entity.getChunkZ() == this.locZ) {
|
||||
+ String chunkName = entity.getWorld().getWorld().getName() + ":" + entity.getChunkX() + "," + entity.getChunkY() + "," + entity.getChunkZ();
|
||||
+ if (!thisChunk) {
|
||||
+ throw new IllegalStateException("Entity Already in another chunk: " + chunkName);
|
||||
+ } else if (this.entitySlices[k].contains(entity)) {
|
||||
+ if (this.entitySlices[k].contains(entity)) {
|
||||
+ new Throwable("Double Chunk Add to: " + chunkName).printStackTrace();
|
||||
+ ignoreAdd = true;
|
||||
+ } else {
|
||||
|
|
Loading…
Reference in a new issue