Skip to content

Commit 765e34d

Browse files
PureGerogithub-actions[bot]
authored andcommitted
Update Upstream
1 parent 00f2e40 commit 765e34d

2 files changed

Lines changed: 28 additions & 28 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mcVersion=26.2
44
apiVersion=26.2
55
version=26.2
66

7-
purpurRef=ed29e9980557c6f252ccbfbc50dced007b6c05f7
7+
purpurRef=42bdbdea5c1c7e81c07fe1da151e79239d28b30f
88

99
org.gradle.configuration-cache=true
1010
org.gradle.caching=true

shreddedpaper-server/minecraft-patches/sources/net/minecraft/server/level/ServerLevel.java.patch

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@
413413
}
414414

415415
// Paper start - optimise random ticking
416-
@@ -1199,7 +_,7 @@
416+
@@ -1198,7 +_,7 @@
417417
}
418418

419419
public boolean isHandlingTick() {
@@ -422,7 +422,7 @@
422422
}
423423

424424
public boolean canSleepThroughNights() {
425-
@@ -1420,27 +_,29 @@
425+
@@ -1419,27 +_,29 @@
426426
this.emptyTime = 0;
427427
}
428428

@@ -456,7 +456,7 @@
456456
((ca.spottedleaf.moonrise.patches.chunk_system.server.ChunkSystemMinecraftServer)this.server).moonrise$executeMidTickTasks();
457457
}
458458
// Paper end - rewrite chunk system
459-
@@ -1495,7 +_,7 @@
459+
@@ -1494,7 +_,7 @@
460460
private void tickPassenger(final Entity vehicle, final Entity entity, final boolean isActive) { // Paper - EAR 2
461461
if (entity.isRemoved() || entity.getVehicle() != vehicle) {
462462
entity.stopRiding();
@@ -465,7 +465,7 @@
465465
entity.setOldPosAndRot();
466466
entity.tickCount++;
467467
entity.totalEntityAge++; // Paper - age-like counter for all entities
468-
@@ -1719,8 +_,8 @@
468+
@@ -1718,8 +_,8 @@
469469
} else {
470470
if (entity instanceof net.minecraft.world.entity.item.ItemEntity item && item.getItem().isEmpty()) return false; // Paper - Prevent empty items from being added
471471
// Paper start - capture all item additions to the world
@@ -476,7 +476,7 @@
476476
return true;
477477
}
478478
// Paper end - capture all item additions to the world
479-
@@ -1806,7 +_,9 @@
479+
@@ -1805,7 +_,9 @@
480480
.callEvent();
481481
}
482482
// Paper end - Add BlockBreakProgressUpdateEvent
@@ -487,7 +487,7 @@
487487
if (player.level() == this && player.getId() != id) {
488488
double xd = blockPos.getX() - player.getX();
489489
double yd = blockPos.getY() - player.getY();
490-
@@ -1817,7 +_,7 @@
490+
@@ -1816,7 +_,7 @@
491491
continue;
492492
}
493493
// CraftBukkit end
@@ -496,7 +496,7 @@
496496
}
497497
}
498498
}
499-
@@ -1926,7 +_,7 @@
499+
@@ -1925,7 +_,7 @@
500500

501501
@Override
502502
public void sendBlockUpdated(final BlockPos pos, final BlockState old, final BlockState current, final @Block.UpdateFlags int updateFlags) {
@@ -505,7 +505,7 @@
505505
String message = "recursive call to sendBlockUpdated";
506506
Util.logAndPauseIfInIde("recursive call to sendBlockUpdated", new IllegalStateException("recursive call to sendBlockUpdated"));
507507
}
508-
@@ -1940,7 +_,7 @@
508+
@@ -1939,7 +_,7 @@
509509
List<PathNavigation> navigationsToUpdate = new ObjectArrayList<>();
510510

511511
try { // Paper - catch CME see below why
@@ -514,7 +514,7 @@
514514
PathNavigation pathNavigation = navigatingMob.getNavigation();
515515
if (pathNavigation.shouldRecomputePath(pos)) {
516516
navigationsToUpdate.add(pathNavigation);
517-
@@ -1957,13 +_,13 @@
517+
@@ -1956,13 +_,13 @@
518518
// Paper end - catch CME see below why
519519

520520
try {
@@ -530,7 +530,7 @@
530530
}
531531
}
532532
} // Paper - option to disable pathfinding updates
533-
@@ -1972,17 +_,17 @@
533+
@@ -1971,17 +_,17 @@
534534
@Override
535535
public void updateNeighborsAt(final BlockPos pos, final Block sourceBlock) {
536536
// CraftBukkit start
@@ -551,7 +551,7 @@
551551
this.neighborUpdater.updateNeighborsAtExceptFromFacing(pos, sourceBlock, null, orientation);
552552
}
553553

554-
@@ -2111,14 +_,15 @@
554+
@@ -2110,14 +_,15 @@
555555

556556
@Override
557557
public void blockEvent(final BlockPos pos, final Block block, final int b0, final int b1) {
@@ -572,7 +572,7 @@
572572
if (this.shouldTickBlocksAt(eventData.pos())) {
573573
if (this.doBlockEvent(eventData)) {
574574
this.server
575-
@@ -2134,11 +_,11 @@
575+
@@ -2133,11 +_,11 @@
576576
);
577577
}
578578
} else {
@@ -586,7 +586,7 @@
586586
}
587587

588588
private boolean doBlockEvent(final BlockEventData eventData) {
589-
@@ -2388,7 +_,7 @@
589+
@@ -2387,7 +_,7 @@
590590
final MapItemSavedData mapData = storage.get(MapItemSavedData.type(id)); // get populates the cache
591591
if (mapData != null) { // map was read, init it and return
592592
mapData.id = id;
@@ -595,7 +595,7 @@
595595
return mapData;
596596
}
597597

598-
@@ -2407,8 +_,7 @@
598+
@@ -2406,8 +_,7 @@
599599
public void setMapData(final MapId id, final MapItemSavedData data) {
600600
// CraftBukkit start
601601
data.id = id;
@@ -605,7 +605,7 @@
605605
// CraftBukkit end
606606
this.getServer().getDataStorage().set(MapItemSavedData.type(id), data);
607607
}
608-
@@ -2464,11 +_,11 @@
608+
@@ -2463,11 +_,11 @@
609609
Optional<Holder<PoiType>> newType = PoiTypes.forState(newState);
610610
if (!Objects.equals(oldType, newType)) {
611611
BlockPos immutable = pos.immutable();
@@ -619,7 +619,7 @@
619619
// Paper start - Remove stale POIs
620620
if (oldType.isEmpty() && this.getPoiManager().exists(immutable, _ -> true)) {
621621
this.getPoiManager().remove(immutable);
622-
@@ -2531,7 +_,7 @@
622+
@@ -2530,7 +_,7 @@
623623
}
624624

625625
output.write(String.format(Locale.ROOT, "entities: %s\n", this.moonrise$getEntityLookup().getDebugInfo())); // Paper - rewrite chunk system
@@ -628,7 +628,7 @@
628628
output.write(String.format(Locale.ROOT, "block_ticks: %d\n", this.getBlockTicks().count()));
629629
output.write(String.format(Locale.ROOT, "fluid_ticks: %d\n", this.getFluidTicks().count()));
630630
output.write("distance_manager: " + chunkMap.getDistanceManager().getDebugStatus() + "\n");
631-
@@ -2599,17 +_,25 @@
631+
@@ -2598,17 +_,25 @@
632632
}
633633

634634
private void dumpBlockEntityTickers(final Writer output) throws IOException {
@@ -661,7 +661,7 @@
661661
}
662662

663663
public Iterable<Entity> getAllEntities() {
664-
@@ -2651,8 +_,8 @@
664+
@@ -2650,8 +_,8 @@
665665
this.players.size(),
666666
this.moonrise$getEntityLookup().getDebugInfo(), // Paper - rewrite chunk system
667667
getTypeCount(this.moonrise$getEntityLookup().getAll(), e -> e.typeHolder().getRegisteredName()), // Paper - rewrite chunk system
@@ -672,7 +672,7 @@
672672
this.getBlockTicks().count(),
673673
this.getFluidTicks().count(),
674674
this.gatherChunkSourceStats()
675-
@@ -2682,7 +_,7 @@
675+
@@ -2681,7 +_,7 @@
676676

677677
@Override
678678
public LevelEntityGetter<Entity> getEntities() {
@@ -681,7 +681,7 @@
681681
return this.moonrise$getEntityLookup(); // Paper - rewrite chunk system
682682
}
683683

684-
@@ -2870,7 +_,7 @@
684+
@@ -2869,7 +_,7 @@
685685
// Paper start - optimize redstone (Alternate Current)
686686
@Override
687687
public alternate.current.wire.WireHandler getWireHandler() {
@@ -690,7 +690,7 @@
690690
}
691691
// Paper end - optimize redstone (Alternate Current)
692692

693-
@@ -2911,12 +_,12 @@
693+
@@ -2910,12 +_,12 @@
694694
@Override
695695
public void onTickingStart(final Entity entity) {
696696
if (entity instanceof net.minecraft.world.entity.Marker && !paperConfig().entities.markers.tick) return; // Paper - Configurable marker ticking
@@ -705,7 +705,7 @@
705705
// Paper start - Reset pearls when they stop being ticked
706706
if (ServerLevel.this.paperConfig().fixes.disableUnloadedChunkEnderpearlExploit && ServerLevel.this.paperConfig().misc.legacyEnderPearlBehavior && entity instanceof net.minecraft.world.entity.projectile.throwableitemprojectile.ThrownEnderpearl pearl) {
707707
pearl.setOwner(null);
708-
@@ -2926,10 +_,11 @@
708+
@@ -2925,10 +_,11 @@
709709

710710
@Override
711711
public void onTrackingStart(final Entity entity) {
@@ -718,7 +718,7 @@
718718
if (player.isReceivingWaypoints()) {
719719
ServerLevel.this.getWaypointManager().addPlayer(player);
720720
}
721-
@@ -2942,14 +_,14 @@
721+
@@ -2941,14 +_,14 @@
722722
}
723723

724724
if (entity instanceof Mob mob) {
@@ -735,7 +735,7 @@
735735
}
736736

737737
if (entity instanceof EnderDragon dragon) {
738-
@@ -2976,7 +_,7 @@
738+
@@ -2975,7 +_,7 @@
739739

740740
@Override
741741
public void onTrackingEnd(final Entity entity) {
@@ -744,7 +744,7 @@
744744
// Spigot start // TODO I don't think this is needed anymore
745745
if (entity instanceof Player player) {
746746
for (final ServerLevel level : ServerLevel.this.getServer().getAllLevels()) {
747-
@@ -2985,10 +_,12 @@
747+
@@ -2984,10 +_,12 @@
748748
continue;
749749
}
750750

@@ -757,7 +757,7 @@
757757
}
758758
}
759759
}
760-
@@ -3007,20 +_,21 @@
760+
@@ -3006,20 +_,21 @@
761761
// Spigot end
762762
ServerLevel.this.getChunkSource().removeEntity(entity);
763763
if (entity instanceof ServerPlayer player) {
@@ -781,7 +781,7 @@
781781
}
782782

783783
if (entity instanceof EnderDragon dragon) {
784-
@@ -3045,6 +_,9 @@
784+
@@ -3044,6 +_,9 @@
785785
@Override
786786
public void onSectionChange(final Entity entity) {
787787
entity.updateDynamicGameEventListener(DynamicGameEventListener::move);

0 commit comments

Comments
 (0)