-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
patches-deobfuscated.xml
553 lines (551 loc) · 28.1 KB
/
patches-deobfuscated.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<mods>
<minecraftCommon>
<class id="net.minecraft.world.SpawnerAnimals">
<addAll fromClass="me.nallar.patched.PatchSpawnerAnimals"/>
<profile>findChunksForSpawning</profile>
</class>
<class id="net.minecraft.pathfinding.Path">
<newInitializer field="pathPoints" class="net.minecraft.pathfinding.PathPoint" arraySize="128"/>
</class>
<class id="net.minecraft.server.MinecraftServer">
<addAll fromClass="me.nallar.patched.server.PatchMinecraftServer"/>
<public field="mcServer"/>
</class>
<class id="net.minecraft.server.MinecraftServer" env="mcpc">
<replaceMethod code="org.bukkit.craftbukkit.v1_4_R1.util.WatchdogThread.tick();">spigotTick</replaceMethod>
<replaceMethod code="{
this.server.getScheduler().mainThreadHeartbeat(this.w);
while (!processQueue.isEmpty()) {
((Runnable) processQueue.remove()).run();
}
org.bukkit.craftbukkit.v1_4_R1.chunkio.ChunkIOExecutor.tick();
}">spigotTLETick
</replaceMethod>
</class>
<class id="net.minecraft.server.MinecraftServer" env="forge">
<addAll fromClass="me.nallar.patched.server.PatchMinecraftServerForge"/>
</class>
<class id="net.minecraft.profiler.Profiler">
<addAll fromClass="me.nallar.patched.PatchProfiler"/>
</class>
<class id="net.minecraft.network.NetServerHandler">
<addAll fromClass="me.nallar.patched.network.PatchNetServerHandler"/>
<replaceMethodCall method="warning"
code="{ javassist.is.faulty.Redirects.notifyAdmins($1); }"
>handleFlying
</replaceMethodCall>
</class>
<class id="net.minecraft.network.packet.Packet10Flying">
<addAll fromClass="me.nallar.patched.network.PatchPacket10Flying"/>
</class>
<class id="net.minecraft.network.packet.Packet14BlockDig">
<addAll fromClass="me.nallar.patched.network.PatchPacketAsync"/>
</class>
<class id="net.minecraft.network.packet.Packet51MapChunk">
<volatile field="chunkData"/>
<addAll fromClass="me.nallar.patched.network.PatchPacket51MapChunk"/>
<threadLocal field="temp" type="byte[]" threadLocalField="javassist.is.faulty.ThreadLocals.mapChunkTempByteArray">getMapChunkData</threadLocal>
</class>
<class id="net.minecraft.network.packet.Packet56MapChunks">
<volatile field="chunkDataBuffer"/>
</class>
<class id="net.minecraft.network.packet.Packet254ServerPing">
<addAll fromClass="me.nallar.patched.network.PatchPacketAsync"/>
</class>
<class id="net.minecraft.network.NetworkListenThread">
<synchronize>addPlayer,networkTick</synchronize>
<profile>networkTick</profile>
<replaceMethodCall code="{ $_ = null; }" method="log" index="1">networkTick</replaceMethodCall>
</class>
<class id="net.minecraft.network.TcpWriterThread">
<ignoreExceptions type="java.net.SocketException">run</ignoreExceptions>
</class>
<class id="net.minecraft.world.World">
<addAll fromClass="me.nallar.patched.world.PatchWorld"/>
<profile>updateEntities</profile>
<profile>setActivePlayerChunksAndCheckLight</profile>
<public>releaseEntitySkin</public>
<final field="worldAccesses"/>
<final field="provider"/>
<final field="theProfiler"/>
<public field="ambientTickCountdown"/>
<replaceInitializer field="playerEntities" code="new java.util.concurrent.CopyOnWriteArrayList();"/>
</class>
<class id="net.minecraft.world.NextTickListEntry">
<newField static="" field="nextEntryID_" class="java.util.concurrent.atomic.AtomicLong"/>
<insertAfter field="tickEntryID" code="this.$field = this.nextEntryID_.getAndIncrement();"/>
</class>
<class id="net.minecraft.world.WorldServer">
<synchronize>addBlockEvent,sendAndApplyBlockEvents</synchronize>
<addAll fromClass="me.nallar.patched.world.PatchWorldServer"/>
<profile>tickBlocksAndAmbiance</profile>
<profile>tick</profile>
<insertSuper>initialize</insertSuper>
</class>
<class id="net.minecraft.world.biome.WorldChunkManager">
<newField field="staticLock" class="java.lang.Object" static=""/>
<synchronize field="staticLock">getModdedBiomeGenerators</synchronize>
</class>
<class id="net.minecraft.world.biome.BiomeCache">
<synchronize>getBiomeCacheBlock,cleanupCache</synchronize>
</class>
<class id="net.minecraft.world.gen.ChunkProviderServer">
<public field="loadedChunks"/>
<final field="worldObj"/>
<final field="loadedChunkHashMap"/>
<final field="loadedChunks"/>
</class>
<class id="net.minecraft.world.gen.ChunkProviderServer">
<addAll fromClass="me.nallar.patched.storage.PatchChunkProviderServer"/>
</class>
<class id="net.minecraft.world.gen.ChunkProviderServer" env="mcpc">
<replaceMethod field="loadedChunkHashMap" code="return ($r)this.$field.get(org.bukkit.craftbukkit.v1_4_R1.util.LongHash.toLong($1, $2));">getChunkIfExists</replaceMethod>
</class>
<class id="net.minecraft.world.gen.ChunkProviderServer" env="forge">
<addAll fromClass="me.nallar.patched.storage.PatchChunkProviderServerForge"/>
<synchronize field="chunkLoadLock">unloadAllChunks,saveChunks,unload100OldestChunks</synchronize>
<synchronize field="genLock">populate</synchronize>
</class>
<class id="net.minecraft.world.chunk.storage.RegionFileCache" env="forge">
<replaceMethod code="throw new UnsupportedOperationException();">createOrLoadRegionFile</replaceMethod>
</class>
<class id="net.minecraft.world.chunk.storage.AnvilChunkLoader" env="forge">
<addAll fromClass="me.nallar.patched.storage.PatchAnvilChunkLoader"/>
</class>
<class id="net.minecraft.world.chunk.Chunk">
<!-- The entity list could be accessed from multiple threads, as usual causes problems during iteration -->
<addAll fromClass="me.nallar.patched.storage.PatchChunk"/>
<final field="xPosition"/>
<final field="zPosition"/>
<final field="entityLists"/>
<final field="worldObj"/>
<lock field="entityListWriteLock">onChunkLoad,onChunkUnload,removeEntityAtIndex,addEntity</lock>
<lock field="entityListReadLock">getEntitiesWithinAABBForEntity,getEntitiesOfTypeWithinAAAB</lock>
</class>
<class id="net.minecraft.util.Vec3Pool">
<!-- This prevents entities in multiple threads using the same Vec3 for collisions. -->
<synchronize>getVecFromPool</synchronize>
</class>
<class id="net.minecraft.util.Vec3Pool" env="mcpc">
<synchronize>getVecFromPool,release,clear</synchronize>
</class>
<class id="net.minecraft.util.AxisAlignedBB">
<!-- Improves performance -->
<replaceMethod fromClass="me.nallar.patched.PatchAxisAlignedBB">intersectsWith</replaceMethod>
</class>
<class id="net.minecraft.util.LongHashMap">
<replace class="me.nallar.patched.collection.LongHashMap"/>
</class>
<class id="net.minecraft.util.IntHashMap">
<replace class="me.nallar.patched.collection.IntHashMap"/>
</class>
<class id="net.minecraft.entity.player.EntityPlayerMP">
<synchronize field="loadedChunks">onUpdate</synchronize>
<addAll fromClass="me.nallar.patched.entity.PatchEntityPlayerMP"/>
<!-- Concurrent access during iteration = boom -->
<replaceInitializer field="destroyedItemsNetCache" code="new me.nallar.tickthreading.collections.ConcurrentLinkedQueueList();"/>
</class>
<class id="net.minecraft.entity.Entity">
<addAll fromClass="me.nallar.patched.entity.PatchEntity"/>
</class>
<class id="net.minecraft.entity.Entity">
<final field="rand"/>
<newField static="" field="nextEntityID_" class="java.util.concurrent.atomic.AtomicInteger"/>
<insertAfter field="entityId" code="this.$field = this.nextEntityID_.getAndIncrement();"/>
<insertBefore code="if ($1 == 0 && $2 == 0 && $3 == 0) { return; }">moveEntity</insertBefore>
</class>
<class id="net.minecraft.entity.EntityLiving">
<addAll fromClass="me.nallar.patched.entity.PatchEntityLiving"/>
</class>
<class id="net.minecraft.entity.item.EntityItem">
<addAll fromClass="me.nallar.patched.entity.PatchEntityItem"/>
<insertSuper>onUpdate</insertSuper>
</class>
<class id="net.minecraft.tileentity.TileEntity">
<addMethod return="java.lang.String"
name="toString"
code="return super.toString() + " x,y,z: " + l + ", " + m + ", " + n;"/>
<addAll fromClass="me.nallar.patched.PatchTileEntity"/>
</class>
<class id="net.minecraft.entity.EntityTracker">
<!-- Yet more comodification exceptions -->
<addAll fromClass="me.nallar.patched.entity.PatchEntityTracker"/>
<newField field="readWriteLock" class="me.nallar.tickthreading.util.concurrent.TwoWayReentrantReadWriteLock"/>
<newField field="writeLock" class="java.util.concurrent.locks.Lock" code="this.readWriteLock.writeLock();"/>
<newField field="readLock" class="java.util.concurrent.locks.Lock" code="this.readWriteLock.readLock();"/>
<lock field="writeLock">addEntityToTracker(Lnet/minecraft/entity/Entity;)V,addEntityToTracker(Lnet/minecraft/entity/Entity;IIZ)V,removeEntityFromAllTrackingPlayers</lock>
<lock field="readLock">updateTrackedEntities,removeAllTrackingPlayers,func_85172_a</lock>
</class>
<class id="net.minecraft.village.Village">
<addAll fromClass="me.nallar.patched.PatchVillage"/>
</class>
<class id="net.minecraft.village.VillageCollection">
<addAll fromClass="me.nallar.patched.collection.PatchVillageCollection"/>
<!-- Literally the most useless collection. Locking instead of voiding in case it ever does something useful in future -->
<newField field="readWriteLock" class="me.nallar.tickthreading.util.concurrent.TwoWayReentrantReadWriteLock"/>
<newField field="writeLock" class="java.util.concurrent.locks.Lock" code="this.readWriteLock.writeLock();"/>
<newField field="readLock" class="java.util.concurrent.locks.Lock" code="this.readWriteLock.readLock();"/>
<lock field="writeLock">addVillagerPosition</lock>
<lock field="readLock">findNearestVillage,func_82566_a</lock>
</class>
<class id="net.minecraft.server.management.ServerConfigurationManager">
<newField field="readWriteLock" class="me.nallar.tickthreading.util.concurrent.TwoWayReentrantReadWriteLock"/>
<newField field="playersUpdateLock" class="java.util.concurrent.locks.Lock" code="this.readWriteLock.writeLock();"/>
<newField field="playerUpdateLock" class="java.util.concurrent.locks.Lock" code="this.readWriteLock.readLock();"/>
<lock field="playerUpdateLock">createPlayerForUser,sendPacketToAllPlayers,sendPlayerInfoToAllPlayers</lock>
<lock field="playerUpdateLock">sendPacketToAllPlayersInDimension,getPlayerListAsString,getAllUsernames,getPlayerForUsername,findPlayers,sendToAllNearExcept</lock>
<lock field="playerUpdateLock">saveAllPlayerData,getPlayerList</lock>
<lockMethodCall method="add" field="playersUpdateLock">playerLoggedOut,playerLoggedIn,respawnPlayer</lockMethodCall>
<lockMethodCall method="remove" field="playersUpdateLock">playerLoggedOut,playerLoggedIn,respawnPlayer</lockMethodCall>
<synchronize field="$1.loadedChunks">respawnPlayer</synchronize>
<synchronize field="$1.loadedChunks">transferPlayerToDimension(Lnet.minecraft.entity.player.EntityPlayerMP;ILnet.minecraft.world.Teleporter;)V</synchronize>
<synchronize field="$2.loadedChunks">initializeConnectionToPlayer</synchronize>
</class>
<class id="net.minecraft.server.management.ServerConfigurationManager" env="forge">
<addAll fromClass="me.nallar.patched.server.PatchServerConfigurationManager"/>
</class>
<class id="net.minecraft.server.management.PlayerManager">
<newField field="readWriteLock" class="java.util.concurrent.locks.ReentrantReadWriteLock"/>
<newField field="playersUpdateLock" class="java.util.concurrent.locks.Lock" code="this.readWriteLock.writeLock();"/>
<newField field="playerUpdateLock" class="java.util.concurrent.locks.Lock" code="this.readWriteLock.readLock();"/>
<addAll fromClass="me.nallar.patched.world.tracking.PatchPlayerManager"/>
</class>
<class id="net.minecraft.server.management.PlayerManager" env="forge">
<addAll fromClass="me.nallar.patched.world.tracking.PatchPlayerManagerForge"/>
</class>
<class id="net.minecraft.server.management.PlayerManager" env="mcpc">
<lock field="playersUpdateLock">updatePlayerInstances</lock>
</class>
<class id="net.minecraft.server.management.PlayerManager">
<synchronize field="$1.loadedChunks">addPlayer,removePlayer,filterChunkLoadQueue</synchronize>
<synchronize field="$1.loadedChunks">updateMountedMovingPlayer</synchronize>
<synchronize>addPlayer,removePlayer</synchronize>
<profile>updatePlayerInstances</profile>
</class>
<class id="net.minecraft.server.management.PlayerInstance">
<addAll fromClass="me.nallar.patched.world.tracking.PatchPlayerInstance"/>
<insertBefore code="this.sendTiles();">sendChunkUpdate</insertBefore>
</class>
<class id="net.minecraft.server.management.PlayerInstance" env="forge">
<addAll fromClass="me.nallar.patched.world.tracking.PatchPlayerInstanceForge"/>
<lock field="myManager.playerUpdateLock">flagChunkForUpdate,sendChunkUpdate</lock>
<replaceMethodCall index="1" code="{ $_ = null; }"/>
<synchronize field="$1.loadedChunks">addPlayerToChunkWatchingList,sendThisChunkToPlayer</synchronize>
</class>
<class id="net.minecraft.world.ChunkCoordIntPair">
<addAll fromClass="me.nallar.patched.storage.PatchChunkCoordIntPair"/>
</class>
<class id="net.minecraft.crash.CrashReport">
<addAll fromClass="me.nallar.patched.server.PatchCrashReport"/>
</class>
<class id="net.minecraft.block.BlockRedstoneTorch">
<addAll fromClass="me.nallar.patched.block.PatchBlockRedstoneTorch"/>
</class>
<class id="net.minecraft.block.BlockRedstoneWire">
<synchronize>calculateCurrentChanges,updateAndPropagateCurrentStrength</synchronize>
</class>
<class id="net.minecraft.network.TcpConnection">
<addAll fromClass="me.nallar.patched.network.PatchTcpConnection"/>
</class>
<class id="net.minecraft.network.TcpReaderThread">
<replace class="me.nallar.patched.network.PatchTcpReaderThread"/>
</class>
<class id="net.minecraft.entity.ai.EntityAITasks">
<synchronize>addTask,func_85156_a,onUpdateTasks,func_75775_b</synchronize>
</class>
</minecraftCommon>
<forge>
<class id="net.minecraftforge.common.Configuration">
<addAll fromClass="me.nallar.patched.forge.PatchConfiguration"/>
</class>
<class id="net.minecraftforge.common.ConfigCategory">
<addAll fromClass="me.nallar.patched.forge.PatchConfigCategory"/>
</class>
<class id="net.minecraftforge.event.Event">
<addAll fromClass="me.nallar.patched.forge.PatchEvent"/>
</class>
<class id="net.minecraftforge.common.DimensionManager">
<addAll fromClass="me.nallar.patched.forge.PatchDimensionManager"/>
<synchronize field="unloadQueue">unloadWorld</synchronize>
</class>
<class id="net.minecraftforge.common.ForgeChunkManager">
<addAll fromClass="me.nallar.patched.forge.PatchForgeChunkManager"/>
</class>
</forge>
<forgeModLoader>
<class id="cpw.mods.fml.relauncher.FMLLogFormatter">
<replace class="me.nallar.tickthreading.LogFormatter"/>
</class>
<class id="cpw.mods.fml.common.event.FMLInterModComms$IMCMessage">
<addAll fromClass="me.nallar.patched.forge.PatchIMCMessage"/>
</class>
<class id="cpw.mods.fml.common.Loader">
<addAll fromClass="me.nallar.patched.forge.PatchLoader"/>
</class>
<class id="cpw.mods.fml.common.Loader$ModIdComparator">
<public/>
</class>
<class id="cpw.mods.fml.common.asm.FMLSanityChecker">
<replaceMethodCall code="{ $_ = null; }" method="severe">call</replaceMethodCall>
</class>
<class id="cpw.mods.fml.common.FMLModContainer">
<replaceMethodCall index="0" code="{ $_ = null; }" method="log">constructMod</replaceMethodCall>
<replaceFieldUsage field="fingerprintNotPresent" readCode="$_ = false;">constructMod</replaceFieldUsage>
<replaceFieldUsage field="expectedFingerprint" readCode="$_ = null;">constructMod</replaceFieldUsage>
</class>
<class id="cpw.mods.fml.common.registry.BlockTracker">
<synchronize>getNextBlockId,doReserveId</synchronize>
</class>
<class id="cpw.mods.fml.common.FMLCommonHandler">
<addAll fromClass="me.nallar.patched.forge.PatchFMLCommonHandler"/>
</class>
<class id="cpw.mods.fml.relauncher.RelaunchClassLoader">
<addAll fromClass="me.nallar.patched.forge.PatchRelaunchClassLoader"/>
<synchronize>findClass</synchronize>
</class>
<class id="cpw.mods.fml.common.network.ModListResponsePacket">
<replaceMethodCall index="2" code="{ $_ = null; }" method="info">execute</replaceMethodCall>
<replaceMethodCall index="3" code="{ $_ = null; }" method="info">execute</replaceMethodCall>
</class>
</forgeModLoader>
<factorization>
<class id="factorization.common.TileEntityWrathLamp">
<threadLocal field="toVisit" type="java.util.HashSet" threadLocalField="javassist.is.faulty.ThreadLocals.factorizationFindLightAirParentToVisit"/>
</class>
<class id="factorization.api.Charge">
<newField field="staticLock" class="java.lang.Object" static=""/>
<synchronize field="staticLock">update</synchronize>
</class>
<class id="factorization.common.TileEntityBarrel">
<synchronize>a(ILur;)V</synchronize>
</class>
</factorization>
<liteLoader>
<class id="com.mumfrey.liteloader.core.HookProfiler">
<!-- LiteLoader makes the profiler not threadsafe - I may look into patching this better in future, but TT isn't really intended for clients -->
<synchronize>a(Ljava/lang/String;)V,b()V</synchronize>
</class>
</liteLoader>
<buildCraftTransport>
<class id="buildcraft.transport.TileGenericPipe">
<newField field="staticLock" class="java.lang.Object" static=""/>
<synchronize field="staticLock">initialize</synchronize>
<synchronize field="facadeBlocks">blockCreated,getBlockId,getTile,computeConnections</synchronize>
</class>
<class id="buildcraft.transport.PipeTransportItems">
<!-- TODO: Find a more suitable way of making this concurrent without making performRemoval slow -->
<replaceInitializer field="travelingEntities" code="new org.cliffc.high_scale_lib.NonBlockingHashMap();"/>
</class>
<class id="buildcraft.transport.PipeTransportPower">
<!-- TODO: Non-static lock, if possible -->
<newField field="staticLock" class="java.lang.Object" static=""/>
<synchronize field="staticLock">updateEntity</synchronize>
</class>
</buildCraftTransport>
<thermalExpansionTransport>
<class id="thermalexpansion.transport.tileentity.TileConduitEnergy">
<newField field="tickLock" class="java.lang.Object" static=""/>
<synchronize field="tickLock">updateGridIfNull</synchronize>
</class>
<class id="thermalexpansion.transport.tileentity.TileConduitLiquid">
<newField field="tickLock" class="java.lang.Object" static=""/>
<synchronize field="tickLock">updateGridIfNull</synchronize>
</class>
<class id="thermalexpansion.transport.GridLiquid">
<synchronize>transferLiquid,removeNode,removeConduit,setNewGrid,changeMode,increaseTracker,addNode,addConduit</synchronize>
</class>
<class id="thermalexpansion.transport.GridEnergy">
<synchronize>transferEnergy,removeNode,removeConduit,setNewGrid,changeMode,increaseTracker,addNode,addConduit</synchronize>
</class>
</thermalExpansionTransport>
<redPowerCore>
<class id="com.eloraam.redpower.core.RedPowerLib">
<threadLocal field="blockUpdates" type="java.util.HashSet" threadLocalField="javassist.is.faulty.ThreadLocals.redPowerBlockUpdateSet"/>
<threadLocal field="powerSearchTest" type="java.util.HashSet" threadLocalField="javassist.is.faulty.ThreadLocals.redPowerPowerSearchTest"/>
<threadLocal field="powerSearch" type="java.util.LinkedList" threadLocalField="javassist.is.faulty.ThreadLocals.redPowerPowerSearch"/>
<!-- Still broken - crashes JVM!
<threadLocal field="searching" type="boolean" setExpression="java.lang.Boolean.valueOf($1)" threadLocalField="javassist.is.faulty.ThreadLocals.redPowerIsSearching"/>
-->
</class>
<class id="com.eloraam.redpower.core.TileExtended">
<replaceMethod code="this.sendTile();">updateBlock</replaceMethod>
<replaceMethod code="this.sendTileWithNotify();">updateBlockChange</replaceMethod>
</class>
<class id="com.eloraam.redpower.core.TubeFlow">
<!-- TODO: Non-static lock -->
<newField field="staticLock" class="java.lang.Object" static=""/>
<synchronize field="staticLock">update,add,onRemove</synchronize>
<!-- Possibly buggy but fast fix
<replaceField field="contents" class="me.nallar.tickthreading.collections.ConcurrentLinkedQueueList" type="java.util.List"/>
-->
</class>
<class id="com.eloraam.redpower.core.PipeLib">
<replaceMethodCall index="0" code="{ $_ = null; }" method="printf">registerForgeFluid</replaceMethodCall>
</class>
<class id="com.eloraam.redpower.base.ContainerBag">
<newMethod
code="public ur a(int i, int j, int k, qx l) { if (k == 2) { javassist.is.faulty.Redirects.notifyAdmins(String.valueOf(l) + " tried to dupe"); l.a(0); return null; } return super.a(i, j, k, l); }"
/>
</class>
</redPowerCore>
<industrialCraft>
<class id="ic2.core.IC2">
<synchronize>addSingleTickCallback</synchronize>
</class>
<class id="ic2.core.EnergyNet">
<replaceMethodCall method="warning" code="{}">emitEnergyFrom</replaceMethodCall>
<replaceInitializer field="worldToEnergyNetMap" class="java.util.HashMap"/>
<replaceInitializer field="energySourceToEnergyPathMap" class="java.util.HashMap"/>
<replaceInitializer field="entityLivingToShockEnergyMap" class="java.util.HashMap"/>
<!-- TODO: Add correctly implemented double checked locking -->
<synchronize field="ic2.core.EnergyNet.class">getForWorld</synchronize>
<synchronize>addTileEntity,removeTileEntity,emitEnergyFrom,discover</synchronize>
</class>
</industrialCraft>
<gregTech>
<class id="gregtechmod.GT_Mod">
<synchronize>readIDSUData,writeIDSUData</synchronize>
</class>
</gregTech>
<chickenChunks>
<class id="codechicken.chunkloader.ChunkLoaderEventHandler">
<newField field="staticLock" class="java.lang.Object" static=""/>
<synchronize field="staticLock">tickEnd,onPlayerLogout,onWorldLoad,onWorldUnload,onChunkForce,onChunkUnForce</synchronize>
</class>
<class id="codechicken.chunkloader.PlayerChunkViewerManager">
<synchronize field="$1.b.g">calculateChunkChanges</synchronize>
</class>
<class id="codechicken.chunkloader.ChunkLoaderManager">
<disable>cleanChunks</disable>
</class>
<class id="codechicken.chunkloader.CommandChunkLoaders">
<synchronize field="codechicken.chunkloader.ChunkLoaderEventHandler.staticLock">handleCommand</synchronize>
</class>
</chickenChunks>
<wirelessRedstone>
<class id="codechicken.wirelessredstone.core.RedstoneEtherServer">
<synchronize>tick</synchronize>
</class>
</wirelessRedstone>
<myTown>
<class id="ee.lutsu.alpha.mc.mytown.event.ProtectionEvents">
<synchronize>tickStart</synchronize>
</class>
</myTown>
<soulShards>
<class id="com.shadwdrgn.soulshards.CommonProxy">
<replaceMethodCall index="0" code="{}" method="println">processShard</replaceMethodCall>
</class>
</soulShards>
<extraBiomesXL>
<class id="extrabiomes.blocks.BlockAutumnLeaves$BlockType">
<insertBefore code="if (loadedCustomBlocks) { return; }">loadCustomBlocks</insertBefore>
<synchronize/>
</class>
<class id="extrabiomes.blocks.BlockGreenLeaves$BlockType">
<insertBefore code="if (loadedCustomBlocks) { return; }">loadCustomBlocks</insertBefore>
<synchronize/>
</class>
<class id="extrabiomes.module.summa.worldgen.WorldGenLegendOak$TreeBlock">
<insertBefore code="if (loadedCustomBlocks) { return; }">loadCustomBlocks</insertBefore>
<synchronize>loadCustomBlocks</synchronize>
</class>
<class id="extrabiomes.module.summa.worldgen.WorldGenFirTreeHuge$TreeBlock">
<insertBefore code="if (loadedCustomBlocks) { return; }">loadCustomBlocks</insertBefore>
<synchronize>loadCustomBlocks</synchronize>
</class>
<class id="extrabiomes.module.summa.worldgen.WorldGenFirTree$TreeBlock">
<insertBefore code="if (loadedCustomBlocks) { return; }">loadCustomBlocks</insertBefore>
<synchronize>loadCustomBlocks</synchronize>
</class>
<class id="extrabiomes.module.summa.worldgen.WorldGenAutumnTree$AutumnTreeType">
<insertBefore code="if (loadedCustomBlocks) { return; }">loadCustomBlocks</insertBefore>
<synchronize>loadCustomBlocks</synchronize>
</class>
<class id="extrabiomes.module.summa.worldgen.WorldGenAcacia$TreeBlock">
<insertBefore code="if (loadedCustomBlocks) { return; }">loadCustomBlocks</insertBefore>
<synchronize>loadCustomBlocks</synchronize>
</class>
<class id="extrabiomes.module.summa.worldgen.WorldGenRedwood$TreeBlock">
<insertBefore code="if (loadedCustomBlocks) { return; }">loadCustomBlocks</insertBefore>
<synchronize>loadCustomBlocks</synchronize>
</class>
</extraBiomesXL>
<portalGun>
<class id="portalgun.common.core.TickHandlerServer">
<synchronize field="$1.e">worldTick</synchronize>
</class>
</portalGun>
<twilightForest>
<class id="twilightforest.TFFeatureCache">
<synchronize>save</synchronize>
</class>
<class id="twilightforest.TFEventListener">
<synchronize>worldSave</synchronize>
</class>
<class id="twilightforest.block.BlockTFMagicLogSpecial">
<!-- Spams logs, slow -->
<disable>doSortingTreeEffect</disable>
</class>
</twilightForest>
<bukkitForge>
<class id="org.bukkit.plugin.SimplePluginManager">
<replaceMethod code="{ fireEvent($$); }">callEvent</replaceMethod>
</class>
</bukkitForge>
<additionalPipes>
<class id="buildcraft.additionalpipes.pipes.PipePowerTeleport">
<synchronize>receiveEnergy,requestEnergy</synchronize>
</class>
<class id="buildcraft.additionalpipes.pipes.TeleportManager">
<synchronize>getConnectedPipes</synchronize>
</class>
</additionalPipes>
<MFFS>
<class id="chb.mods.mffs.common.item.ItemCardPowerLink">
<synchronize/>
</class>
</MFFS>
<thaumcraft>
<class id="thaumcraft.common.AuraManager">
<synchronize>registerAuraNode</synchronize>
</class>
<class id="thaumcraft.common.blocks.TileSensor">
<synchronize field="$1">getNoteBlockEvents</synchronize>
</class>
</thaumcraft>
<universalElectricity>
<class id="universalelectricity.core.electricity.Electricity">
<newField field="readWriteLock" class="me.nallar.tickthreading.util.concurrent.TwoWayReentrantReadWriteLock"/>
<newField field="writeLock" class="java.util.concurrent.locks.Lock" code="this.readWriteLock.writeLock();"/>
<newField field="readLock" class="java.util.concurrent.locks.Lock" code="this.readWriteLock.readLock();"/>
<insertAfter code="{
if (electricityNetworks.getClass() == java.util.ArrayList.class) {
electricityNetworks = new me.nallar.tickthreading.collections.LockArrayList(electricityNetworks);
((me.nallar.tickthreading.collections.LockArrayList)electricityNetworks).lock = writeLock;
}
}"/>
<lock field="readLock">unregister,cleanUpNetworks,resetConductors</lock>
<synchronize>mergeConnection,splitConnection</synchronize>
</class>
<class id="universalelectricity.core.electricity.ElectricityNetwork">
<newField field="readLock" class="java.util.concurrent.locks.Lock" code="none"/>
<replaceMethod code="{
me.nallar.tickthreading.util.concurrent.TwoWayReentrantReadWriteLock readWriteLock = new me.nallar.tickthreading.util.concurrent.TwoWayReentrantReadWriteLock();
readLock = readWriteLock.readLock();
consumers = new me.nallar.tickthreading.collections.CHashMap();
producers = new me.nallar.tickthreading.collections.CHashMap();
conductors = new me.nallar.tickthreading.collections.LockArrayList();
((me.nallar.tickthreading.collections.LockArrayList)conductors).lock = readWriteLock.writeLock();
this.addConductor($1);
}"/>
<lock field="readLock">addConductor,cleanConductors,setNetwork,resetConductors,onOverCharge,getTotalResistance,refreshConductors</lock>
</class>
</universalElectricity>
<appeng>
<class id="appeng.me.tile.TileController">
<synchronize>getCellArray</synchronize>
</class>
</appeng>
</mods>