Clean up a lot of obfuscation helpers and impls
This fixes a bug with obfuscation helpers for attack cooldown But every other change should stay the same. Cleaning up a lot of helpers that pointed to already unobfuscated items. Also adds final to many of the obfhelpers to assist with inlining. This is pretty much a patch maintenance
This commit is contained in:
@@ -106,7 +106,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
private final Mailbox<ChunkTaskQueueSorter.a<Runnable>> j;
|
||||
private final Mailbox<ChunkTaskQueueSorter.b> k;
|
||||
- private final LongSet l = new LongOpenHashSet();
|
||||
+ private final LongSet l = new LongOpenHashSet(); LongSet getOnPlayerTicketAddQueue() { return l; } // Paper - OBFHELPER
|
||||
+ private final LongSet l = new LongOpenHashSet(); public final LongSet getOnPlayerTicketAddQueue() { return l; } // Paper - OBFHELPER
|
||||
private final Executor m;
|
||||
private long currentTick;
|
||||
|
||||
@@ -394,7 +394,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ BlockPosition blockPos = chunkPos.asPosition();
|
||||
+
|
||||
+ boolean isFront = false;
|
||||
+ BlockPosition.PooledBlockPosition pos = BlockPosition.PooledBlockPosition.acquire();
|
||||
+ BlockPosition.MutableBlockPosition pos = new BlockPosition.MutableBlockPosition();
|
||||
+ for (int index = 0, len = backingSet.length; index < len; ++index) {
|
||||
+ if (!(backingSet[index] instanceof EntityPlayer)) {
|
||||
+ continue;
|
||||
@@ -421,7 +421,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ minDist = dist;
|
||||
+ }
|
||||
+ }
|
||||
+ pos.close();
|
||||
+ if (minDist == Double.MAX_VALUE) {
|
||||
+ minDist = 15;
|
||||
+ } else {
|
||||
@@ -997,7 +996,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ it.unimi.dsi.fastutil.longs.Long2IntOpenHashMap priorities = new it.unimi.dsi.fastutil.longs.Long2IntOpenHashMap();
|
||||
+
|
||||
+ int viewDistance = getEffectiveNoTickViewDistance();
|
||||
+ BlockPosition.PooledBlockPosition pos = BlockPosition.PooledBlockPosition.acquire();
|
||||
+ BlockPosition.MutableBlockPosition pos = new BlockPosition.MutableBlockPosition();
|
||||
+
|
||||
+ // Prioritize circular near
|
||||
+ double playerChunkX = MathHelper.floor(player.locX()) >> 4;
|
||||
@@ -1053,7 +1052,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ });
|
||||
+ }
|
||||
+
|
||||
+ pos.close();
|
||||
+ if (priorities.isEmpty()) return;
|
||||
+ chunkDistanceManager.delayDistanceManagerTick = true;
|
||||
+ priorities.long2IntEntrySet().fastForEach(entry -> chunkDistanceManager.markHighPriority(new ChunkCoordIntPair(entry.getLongKey()), entry.getIntValue()));
|
||||
|
||||
Reference in New Issue
Block a user