-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ModPatcher dependency version. Patch WorldServer differently i…
…f Sponge is present (it moved updateEntity/TE.update calls to WorldSErver not World)
- Loading branch information
Showing
5 changed files
with
57 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<patchGroups> | ||
<minecraft> | ||
<class id="net.minecraft.world.WorldServer"> | ||
<clone to="updateEntities_withProfiling">updateEntities</clone> | ||
<insertCodeBefore | ||
code="if (nallar.tickprofiler.minecraft.TickProfiler.shouldProfile(this)) { updateEntities_withProfiling(); return; }"> | ||
updateEntities | ||
</insertCodeBefore> | ||
<replaceMethodCall method="^method:ITickable/update^" | ||
code="nallar.tickprofiler.minecraft.profiling.EntityTickProfiler.INSTANCE.profileTickable($0);"> | ||
updateEntities_withProfiling | ||
</replaceMethodCall> | ||
<replaceMethodCall method="^method:World/updateEntity^" | ||
code="nallar.tickprofiler.minecraft.profiling.EntityTickProfiler.INSTANCE.profileEntity(this, $1);"> | ||
updateEntities_withProfiling | ||
</replaceMethodCall> | ||
</class> | ||
</minecraft> | ||
</patchGroups> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<patchGroups> | ||
<minecraft> | ||
<!-- TODO: update packet profiling for 1.8.9 | ||
<class id="net.minecraft.util.MessageSerializer"> | ||
<replaceMethodCall method="^method:Packet/writePacketData^" | ||
code="$_ = $0.^method:Packet/writePacketData^($1); nallar.tickprofiler.minecraft.profiling.PacketProfiler.record($0, $1);"> | ||
encode | ||
</replaceMethodCall> | ||
<insertCodeBefore code="nallar.tickprofiler.minecraft.TickProfiler.handlePacket($1);"> | ||
scheduleOutboundPacket | ||
</insertCodeBefore> | ||
</class> | ||
--> | ||
</minecraft> | ||
</patchGroups> |