mirror of
https://github.com/BX-Team/DivineMC.git
synced 2025-12-24 01:09:29 +00:00
Updated Upstream (Purpur)
Upstream has released updates that appear to apply and compile correctly Purpur Changes: PurpurMC/Purpur@f2307b8 Updated Upstream (Paper) PurpurMC/Purpur@bba87bf Updated Upstream (Paper) PurpurMC/Purpur@f530395 Fix no exp drops from spawners using silk touch pickaxe without option enabled (#1582) PurpurMC/Purpur@3510a9e Updated Upstream (Paper)
This commit is contained in:
@@ -2,7 +2,7 @@ group = space.bxteam.divinemc
|
|||||||
|
|
||||||
mcVersion = 1.21.1
|
mcVersion = 1.21.1
|
||||||
version = 1.21.1-R0.1-SNAPSHOT
|
version = 1.21.1-R0.1-SNAPSHOT
|
||||||
purpurRef = 201e928fa6966e16e4d8db16d7cf130c444836d0
|
purpurRef = 3510a9e5593ba9480d3fcbd9b4ef9b272ffd52fd
|
||||||
|
|
||||||
org.gradle.caching = true
|
org.gradle.caching = true
|
||||||
org.gradle.parallel = true
|
org.gradle.parallel = true
|
||||||
|
|||||||
@@ -21,10 +21,10 @@ index 214ea75502d4abf9ebbc99a3811e4d2f8465227e..70ae8cd69935d6bc446bb3e425c7982b
|
|||||||
public boolean strictAdvancementDimensionCheck = false;
|
public boolean strictAdvancementDimensionCheck = false;
|
||||||
public IntOr.Default compressionLevel = IntOr.Default.USE_DEFAULT;
|
public IntOr.Default compressionLevel = IntOr.Default.USE_DEFAULT;
|
||||||
diff --git a/src/main/java/io/papermc/paper/configuration/WorldConfiguration.java b/src/main/java/io/papermc/paper/configuration/WorldConfiguration.java
|
diff --git a/src/main/java/io/papermc/paper/configuration/WorldConfiguration.java b/src/main/java/io/papermc/paper/configuration/WorldConfiguration.java
|
||||||
index 4bcf27f98765abf693e535cfc1756c27a10cb316..58dd2f3ffed21eb752e757b7b7d5114f4968b445 100644
|
index 95e96fe8aa93efbbb2e0a7dd98377fdc4fe0e6dd..a8db2aba503de72aafb04c3ca2b2f06c1404b91e 100644
|
||||||
--- a/src/main/java/io/papermc/paper/configuration/WorldConfiguration.java
|
--- a/src/main/java/io/papermc/paper/configuration/WorldConfiguration.java
|
||||||
+++ b/src/main/java/io/papermc/paper/configuration/WorldConfiguration.java
|
+++ b/src/main/java/io/papermc/paper/configuration/WorldConfiguration.java
|
||||||
@@ -152,9 +152,9 @@ public class WorldConfiguration extends ConfigurationPart {
|
@@ -153,9 +153,9 @@ public class WorldConfiguration extends ConfigurationPart {
|
||||||
|
|
||||||
public ArmorStands armorStands;
|
public ArmorStands armorStands;
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ index 4bcf27f98765abf693e535cfc1756c27a10cb316..58dd2f3ffed21eb752e757b7b7d5114f
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Markers markers;
|
public Markers markers;
|
||||||
@@ -254,8 +254,8 @@ public class WorldConfiguration extends ConfigurationPart {
|
@@ -261,8 +261,8 @@ public class WorldConfiguration extends ConfigurationPart {
|
||||||
public Behavior behavior;
|
public Behavior behavior;
|
||||||
|
|
||||||
public class Behavior extends ConfigurationPart {
|
public class Behavior extends ConfigurationPart {
|
||||||
@@ -48,7 +48,7 @@ index 4bcf27f98765abf693e535cfc1756c27a10cb316..58dd2f3ffed21eb752e757b7b7d5114f
|
|||||||
public int experienceMergeMaxValue = -1;
|
public int experienceMergeMaxValue = -1;
|
||||||
public boolean shouldRemoveDragon = false;
|
public boolean shouldRemoveDragon = false;
|
||||||
public boolean zombiesTargetTurtleEggs = true;
|
public boolean zombiesTargetTurtleEggs = true;
|
||||||
@@ -279,7 +279,7 @@ public class WorldConfiguration extends ConfigurationPart {
|
@@ -286,7 +286,7 @@ public class WorldConfiguration extends ConfigurationPart {
|
||||||
public int playerInsomniaStartTicks = 72000;
|
public int playerInsomniaStartTicks = 72000;
|
||||||
public int phantomsSpawnAttemptMinSeconds = 60;
|
public int phantomsSpawnAttemptMinSeconds = 60;
|
||||||
public int phantomsSpawnAttemptMaxSeconds = 119;
|
public int phantomsSpawnAttemptMaxSeconds = 119;
|
||||||
@@ -57,7 +57,7 @@ index 4bcf27f98765abf693e535cfc1756c27a10cb316..58dd2f3ffed21eb752e757b7b7d5114f
|
|||||||
@BelowZeroToEmpty
|
@BelowZeroToEmpty
|
||||||
public DoubleOr.Default zombieVillagerInfectionChance = DoubleOr.Default.USE_DEFAULT;
|
public DoubleOr.Default zombieVillagerInfectionChance = DoubleOr.Default.USE_DEFAULT;
|
||||||
public MobsCanAlwaysPickUpLoot mobsCanAlwaysPickUpLoot;
|
public MobsCanAlwaysPickUpLoot mobsCanAlwaysPickUpLoot;
|
||||||
@@ -290,7 +290,7 @@ public class WorldConfiguration extends ConfigurationPart {
|
@@ -297,7 +297,7 @@ public class WorldConfiguration extends ConfigurationPart {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean disablePlayerCrits = false;
|
public boolean disablePlayerCrits = false;
|
||||||
@@ -66,7 +66,7 @@ index 4bcf27f98765abf693e535cfc1756c27a10cb316..58dd2f3ffed21eb752e757b7b7d5114f
|
|||||||
@Comment("Prevents merging items that are not on the same y level, preventing potential visual artifacts.")
|
@Comment("Prevents merging items that are not on the same y level, preventing potential visual artifacts.")
|
||||||
public boolean onlyMergeItemsHorizontally = false;
|
public boolean onlyMergeItemsHorizontally = false;
|
||||||
public PillagerPatrols pillagerPatrols;
|
public PillagerPatrols pillagerPatrols;
|
||||||
@@ -386,7 +386,7 @@ public class WorldConfiguration extends ConfigurationPart {
|
@@ -393,7 +393,7 @@ public class WorldConfiguration extends ConfigurationPart {
|
||||||
public class Environment extends ConfigurationPart {
|
public class Environment extends ConfigurationPart {
|
||||||
public boolean disableThunder = false;
|
public boolean disableThunder = false;
|
||||||
public boolean disableIceAndSnow = false;
|
public boolean disableIceAndSnow = false;
|
||||||
@@ -75,7 +75,7 @@ index 4bcf27f98765abf693e535cfc1756c27a10cb316..58dd2f3ffed21eb752e757b7b7d5114f
|
|||||||
public boolean disableExplosionKnockback = false;
|
public boolean disableExplosionKnockback = false;
|
||||||
public boolean generateFlatBedrock = false;
|
public boolean generateFlatBedrock = false;
|
||||||
public FrostedIce frostedIce;
|
public FrostedIce frostedIce;
|
||||||
@@ -432,7 +432,7 @@ public class WorldConfiguration extends ConfigurationPart {
|
@@ -439,7 +439,7 @@ public class WorldConfiguration extends ConfigurationPart {
|
||||||
|
|
||||||
public class Maps extends ConfigurationPart {
|
public class Maps extends ConfigurationPart {
|
||||||
public int itemFrameCursorLimit = 128;
|
public int itemFrameCursorLimit = 128;
|
||||||
@@ -84,7 +84,7 @@ index 4bcf27f98765abf693e535cfc1756c27a10cb316..58dd2f3ffed21eb752e757b7b7d5114f
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Fixes fixes;
|
public Fixes fixes;
|
||||||
@@ -458,7 +458,7 @@ public class WorldConfiguration extends ConfigurationPart {
|
@@ -465,7 +465,7 @@ public class WorldConfiguration extends ConfigurationPart {
|
||||||
public class Hopper extends ConfigurationPart {
|
public class Hopper extends ConfigurationPart {
|
||||||
public boolean cooldownWhenFull = true;
|
public boolean cooldownWhenFull = true;
|
||||||
public boolean disableMoveEvent = false;
|
public boolean disableMoveEvent = false;
|
||||||
@@ -93,7 +93,7 @@ index 4bcf27f98765abf693e535cfc1756c27a10cb316..58dd2f3ffed21eb752e757b7b7d5114f
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Collisions collisions;
|
public Collisions collisions;
|
||||||
@@ -466,9 +466,9 @@ public class WorldConfiguration extends ConfigurationPart {
|
@@ -473,9 +473,9 @@ public class WorldConfiguration extends ConfigurationPart {
|
||||||
public class Collisions extends ConfigurationPart {
|
public class Collisions extends ConfigurationPart {
|
||||||
public boolean onlyPlayersCollide = false;
|
public boolean onlyPlayersCollide = false;
|
||||||
public boolean allowVehicleCollisions = true;
|
public boolean allowVehicleCollisions = true;
|
||||||
@@ -105,7 +105,7 @@ index 4bcf27f98765abf693e535cfc1756c27a10cb316..58dd2f3ffed21eb752e757b7b7d5114f
|
|||||||
public boolean allowPlayerCrammingDamage = false;
|
public boolean allowPlayerCrammingDamage = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -476,18 +476,31 @@ public class WorldConfiguration extends ConfigurationPart {
|
@@ -483,18 +483,31 @@ public class WorldConfiguration extends ConfigurationPart {
|
||||||
|
|
||||||
public class Chunks extends ConfigurationPart {
|
public class Chunks extends ConfigurationPart {
|
||||||
public AutosavePeriod autoSaveInterval = AutosavePeriod.def();
|
public AutosavePeriod autoSaveInterval = AutosavePeriod.def();
|
||||||
@@ -147,7 +147,7 @@ index 4bcf27f98765abf693e535cfc1756c27a10cb316..58dd2f3ffed21eb752e757b7b7d5114f
|
|||||||
});
|
});
|
||||||
public boolean flushRegionsOnSave = false;
|
public boolean flushRegionsOnSave = false;
|
||||||
}
|
}
|
||||||
@@ -502,13 +515,15 @@ public class WorldConfiguration extends ConfigurationPart {
|
@@ -509,13 +522,15 @@ public class WorldConfiguration extends ConfigurationPart {
|
||||||
public TickRates tickRates;
|
public TickRates tickRates;
|
||||||
|
|
||||||
public class TickRates extends ConfigurationPart {
|
public class TickRates extends ConfigurationPart {
|
||||||
@@ -168,7 +168,7 @@ index 4bcf27f98765abf693e535cfc1756c27a10cb316..58dd2f3ffed21eb752e757b7b7d5114f
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Setting(FeatureSeedsGeneration.FEATURE_SEEDS_KEY)
|
@Setting(FeatureSeedsGeneration.FEATURE_SEEDS_KEY)
|
||||||
@@ -517,7 +532,7 @@ public class WorldConfiguration extends ConfigurationPart {
|
@@ -524,7 +539,7 @@ public class WorldConfiguration extends ConfigurationPart {
|
||||||
public class FeatureSeeds extends ConfigurationPart {
|
public class FeatureSeeds extends ConfigurationPart {
|
||||||
@SuppressWarnings("unused") // Is used in FeatureSeedsGeneration
|
@SuppressWarnings("unused") // Is used in FeatureSeedsGeneration
|
||||||
@Setting(FeatureSeedsGeneration.GENERATE_KEY)
|
@Setting(FeatureSeedsGeneration.GENERATE_KEY)
|
||||||
@@ -177,7 +177,7 @@ index 4bcf27f98765abf693e535cfc1756c27a10cb316..58dd2f3ffed21eb752e757b7b7d5114f
|
|||||||
@Setting(FeatureSeedsGeneration.FEATURES_KEY)
|
@Setting(FeatureSeedsGeneration.FEATURES_KEY)
|
||||||
public Reference2LongMap<Holder<ConfiguredFeature<?, ?>>> features = new Reference2LongOpenHashMap<>();
|
public Reference2LongMap<Holder<ConfiguredFeature<?, ?>>> features = new Reference2LongOpenHashMap<>();
|
||||||
|
|
||||||
@@ -538,9 +553,9 @@ public class WorldConfiguration extends ConfigurationPart {
|
@@ -545,9 +560,9 @@ public class WorldConfiguration extends ConfigurationPart {
|
||||||
|
|
||||||
public class Misc extends ConfigurationPart {
|
public class Misc extends ConfigurationPart {
|
||||||
public int lightQueueSize = 20;
|
public int lightQueueSize = 20;
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ Subject: [PATCH] lithium: cached_hashcode
|
|||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/world/level/block/Block.java b/src/main/java/net/minecraft/world/level/block/Block.java
|
diff --git a/src/main/java/net/minecraft/world/level/block/Block.java b/src/main/java/net/minecraft/world/level/block/Block.java
|
||||||
index 58c6002bc9d326477ebacfece4bb2bc50389fe87..5c96e33326e395cb26c8cc51411fd34b20f3bbbc 100644
|
index 4ff7e3693305069e7fad185802a3b0481ab70a4a..26dd81b4a6fb929f2b4304442f79e7f3f6c46aa3 100644
|
||||||
--- a/src/main/java/net/minecraft/world/level/block/Block.java
|
--- a/src/main/java/net/minecraft/world/level/block/Block.java
|
||||||
+++ b/src/main/java/net/minecraft/world/level/block/Block.java
|
+++ b/src/main/java/net/minecraft/world/level/block/Block.java
|
||||||
@@ -634,11 +634,19 @@ public class Block extends BlockBehaviour implements ItemLike {
|
@@ -633,11 +633,19 @@ public class Block extends BlockBehaviour implements ItemLike {
|
||||||
private final BlockState first;
|
private final BlockState first;
|
||||||
private final BlockState second;
|
private final BlockState second;
|
||||||
private final Direction direction;
|
private final Direction direction;
|
||||||
@@ -28,7 +28,7 @@ index 58c6002bc9d326477ebacfece4bb2bc50389fe87..5c96e33326e395cb26c8cc51411fd34b
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean equals(Object object) {
|
public boolean equals(Object object) {
|
||||||
@@ -654,11 +662,7 @@ public class Block extends BlockBehaviour implements ItemLike {
|
@@ -653,11 +661,7 @@ public class Block extends BlockBehaviour implements ItemLike {
|
||||||
}
|
}
|
||||||
|
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
|
|||||||
@@ -970,7 +970,7 @@ index 29e31ed2d09aee3b668816a683ab0f89026fdf4f..657801f794bdf25c2401a1b81a524306
|
|||||||
entity.postTick(); // CraftBukkit
|
entity.postTick(); // CraftBukkit
|
||||||
} else { entity.inactiveTick(); } // Paper - EAR 2
|
} else { entity.inactiveTick(); } // Paper - EAR 2
|
||||||
diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java
|
diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java
|
||||||
index 1b1008ffd544dcddc31238e10c06df0d7aa68793..f31d71b2afa12676e56dd0d5c67bfb7a79961f25 100644
|
index 1babe6756b904fd2e5b2d62f6adfa153e3b772f1..c4698cadb76164131a612c0906704b847ca7a0e8 100644
|
||||||
--- a/src/main/java/net/minecraft/server/players/PlayerList.java
|
--- a/src/main/java/net/minecraft/server/players/PlayerList.java
|
||||||
+++ b/src/main/java/net/minecraft/server/players/PlayerList.java
|
+++ b/src/main/java/net/minecraft/server/players/PlayerList.java
|
||||||
@@ -1,6 +1,5 @@
|
@@ -1,6 +1,5 @@
|
||||||
@@ -1091,10 +1091,10 @@ index b273790be3d478a2aa431ba26edf8ad47164d6d7..c22f667473032c2ec861759ea9ae2de3
|
|||||||
this.spigotConfig.currentPrimedTnt = 0; // Spigot
|
this.spigotConfig.currentPrimedTnt = 0; // Spigot
|
||||||
}
|
}
|
||||||
diff --git a/src/main/java/net/minecraft/world/level/block/Block.java b/src/main/java/net/minecraft/world/level/block/Block.java
|
diff --git a/src/main/java/net/minecraft/world/level/block/Block.java b/src/main/java/net/minecraft/world/level/block/Block.java
|
||||||
index 5c96e33326e395cb26c8cc51411fd34b20f3bbbc..7841feef56fc7179e5d6e6541baad5fb3e655ef0 100644
|
index 26dd81b4a6fb929f2b4304442f79e7f3f6c46aa3..4f913e7af8de027f8745832ae3cad11780ded84b 100644
|
||||||
--- a/src/main/java/net/minecraft/world/level/block/Block.java
|
--- a/src/main/java/net/minecraft/world/level/block/Block.java
|
||||||
+++ b/src/main/java/net/minecraft/world/level/block/Block.java
|
+++ b/src/main/java/net/minecraft/world/level/block/Block.java
|
||||||
@@ -107,13 +107,6 @@ public class Block extends BlockBehaviour implements ItemLike {
|
@@ -106,13 +106,6 @@ public class Block extends BlockBehaviour implements ItemLike {
|
||||||
this != Blocks.STRUCTURE_BLOCK &&
|
this != Blocks.STRUCTURE_BLOCK &&
|
||||||
this != Blocks.JIGSAW;
|
this != Blocks.JIGSAW;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ Subject: [PATCH] Block Log4Shell exploit
|
|||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
||||||
index d7356a57de9c706de78c146ba93310c4dd30f41e..e06f914dca5625efe232440097cd6b36c02ed986 100644
|
index 2f98a967bdc0dcf93f8e2960a1c783a5d6cbbc7f..4bdcd831f81379a464320851ff8772b9fe00b734 100644
|
||||||
--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
||||||
+++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
+++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
||||||
@@ -2348,6 +2348,7 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl
|
@@ -2420,6 +2420,7 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
private void tryHandleChat(String s, Runnable runnable, boolean sync) { // CraftBukkit
|
private void tryHandleChat(String s, Runnable runnable, boolean sync) { // CraftBukkit
|
||||||
@@ -16,7 +16,7 @@ index d7356a57de9c706de78c146ba93310c4dd30f41e..e06f914dca5625efe232440097cd6b36
|
|||||||
if (ServerGamePacketListenerImpl.isChatMessageIllegal(s)) {
|
if (ServerGamePacketListenerImpl.isChatMessageIllegal(s)) {
|
||||||
this.disconnect((Component) Component.translatable("multiplayer.disconnect.illegal_characters"), org.bukkit.event.player.PlayerKickEvent.Cause.ILLEGAL_CHARACTERS); // Paper
|
this.disconnect((Component) Component.translatable("multiplayer.disconnect.illegal_characters"), org.bukkit.event.player.PlayerKickEvent.Cause.ILLEGAL_CHARACTERS); // Paper
|
||||||
} else if (this.player.isRemoved() || this.player.getChatVisibility() == ChatVisiblity.HIDDEN) { // CraftBukkit - dead men tell no tales
|
} else if (this.player.isRemoved() || this.player.getChatVisibility() == ChatVisiblity.HIDDEN) { // CraftBukkit - dead men tell no tales
|
||||||
@@ -2379,6 +2380,15 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl
|
@@ -2451,6 +2452,15 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ index ee99519ebd46b1db3e76e7eb86e5cc121c867dc4..43174e6b5bd306273736d1c2971f976c
|
|||||||
for (int j = 0; j < this.height; j++) {
|
for (int j = 0; j < this.height; j++) {
|
||||||
for (int k = 0; k < this.depth; k++) {
|
for (int k = 0; k < this.depth; k++) {
|
||||||
diff --git a/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java b/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java
|
diff --git a/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java b/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java
|
||||||
index 18a1b4325cac81b040596071dab99ef9bf6f3142..445dc3ca4586b39ccc2cebe922455d9fac3d6ea1 100644
|
index 84300f2f7b7be4f5281edd8e263646dbcbb3ba07..e9d74c2afe848b4dcbd70fc251dfaa2411c18591 100644
|
||||||
--- a/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java
|
--- a/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java
|
||||||
+++ b/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java
|
+++ b/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java
|
||||||
@@ -45,6 +45,7 @@ import net.minecraft.world.entity.boss.enderdragon.phases.EnderDragonPhase;
|
@@ -45,6 +45,7 @@ import net.minecraft.world.entity.boss.enderdragon.phases.EnderDragonPhase;
|
||||||
@@ -29,7 +29,7 @@ index 18a1b4325cac81b040596071dab99ef9bf6f3142..445dc3ca4586b39ccc2cebe922455d9f
|
|||||||
import net.minecraft.world.level.block.entity.TheEndPortalBlockEntity;
|
import net.minecraft.world.level.block.entity.TheEndPortalBlockEntity;
|
||||||
import net.minecraft.world.level.block.state.pattern.BlockInWorld;
|
import net.minecraft.world.level.block.state.pattern.BlockInWorld;
|
||||||
import net.minecraft.world.level.block.state.pattern.BlockPattern;
|
import net.minecraft.world.level.block.state.pattern.BlockPattern;
|
||||||
@@ -289,8 +290,67 @@ public class EndDragonFight {
|
@@ -291,8 +292,67 @@ public class EndDragonFight {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,7 +97,7 @@ index 18a1b4325cac81b040596071dab99ef9bf6f3142..445dc3ca4586b39ccc2cebe922455d9f
|
|||||||
ChunkPos chunkcoordintpair = new ChunkPos(this.origin);
|
ChunkPos chunkcoordintpair = new ChunkPos(this.origin);
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
@@ -619,6 +679,11 @@ public class EndDragonFight {
|
@@ -621,6 +681,11 @@ public class EndDragonFight {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean respawnDragon(List<EndCrystal> list) { // CraftBukkit - return boolean
|
public boolean respawnDragon(List<EndCrystal> list) { // CraftBukkit - return boolean
|
||||||
@@ -110,7 +110,7 @@ index 18a1b4325cac81b040596071dab99ef9bf6f3142..445dc3ca4586b39ccc2cebe922455d9f
|
|||||||
for (BlockPattern.BlockPatternMatch shapedetector_shapedetectorcollection = this.findExitPortal(); shapedetector_shapedetectorcollection != null; shapedetector_shapedetectorcollection = this.findExitPortal()) {
|
for (BlockPattern.BlockPatternMatch shapedetector_shapedetectorcollection = this.findExitPortal(); shapedetector_shapedetectorcollection != null; shapedetector_shapedetectorcollection = this.findExitPortal()) {
|
||||||
for (int i = 0; i < this.exitPortalPattern.getWidth(); ++i) {
|
for (int i = 0; i < this.exitPortalPattern.getWidth(); ++i) {
|
||||||
diff --git a/src/main/java/space/bxteam/divinemc/configuration/DivineConfig.java b/src/main/java/space/bxteam/divinemc/configuration/DivineConfig.java
|
diff --git a/src/main/java/space/bxteam/divinemc/configuration/DivineConfig.java b/src/main/java/space/bxteam/divinemc/configuration/DivineConfig.java
|
||||||
index fd0bbc99a151dd12d5522aaf8e3800b1a17500b6..d5f33c6bde58fd333fbdc474a288523bcb5557a1 100644
|
index d499ec5f19db4e2dcd40e940380bffa5196957ee..4a134013b79120ce2a659d9071424bb1d7bd3297 100644
|
||||||
--- a/src/main/java/space/bxteam/divinemc/configuration/DivineConfig.java
|
--- a/src/main/java/space/bxteam/divinemc/configuration/DivineConfig.java
|
||||||
+++ b/src/main/java/space/bxteam/divinemc/configuration/DivineConfig.java
|
+++ b/src/main/java/space/bxteam/divinemc/configuration/DivineConfig.java
|
||||||
@@ -159,7 +159,9 @@ public class DivineConfig {
|
@@ -159,7 +159,9 @@ public class DivineConfig {
|
||||||
|
|||||||
@@ -147,10 +147,10 @@ index fac2fb82c381d245f77b7288c34920660ac2c3af..b3ca62843b17c536840cb4edb700f9c2
|
|||||||
if (packet == null || this.processedDisconnect) { // Spigot
|
if (packet == null || this.processedDisconnect) { // Spigot
|
||||||
return;
|
return;
|
||||||
diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java
|
diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java
|
||||||
index f31d71b2afa12676e56dd0d5c67bfb7a79961f25..3af9bd57eea12a8dffab248631e290b3b368aca3 100644
|
index c4698cadb76164131a612c0906704b847ca7a0e8..cad080581c9fdc19f49fd10c6367feede4bcdf47 100644
|
||||||
--- a/src/main/java/net/minecraft/server/players/PlayerList.java
|
--- a/src/main/java/net/minecraft/server/players/PlayerList.java
|
||||||
+++ b/src/main/java/net/minecraft/server/players/PlayerList.java
|
+++ b/src/main/java/net/minecraft/server/players/PlayerList.java
|
||||||
@@ -1451,7 +1451,7 @@ public abstract class PlayerList {
|
@@ -1454,7 +1454,7 @@ public abstract class PlayerList {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean verifyChatTrusted(PlayerChatMessage message) { // Paper - private -> public
|
public boolean verifyChatTrusted(PlayerChatMessage message) { // Paper - private -> public
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ Subject: [PATCH] Option to disable moved wrongly threshold
|
|||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
||||||
index e06f914dca5625efe232440097cd6b36c02ed986..ef90caee6fb8d3d274fb51a4f080ee7b721f88d9 100644
|
index 4bdcd831f81379a464320851ff8772b9fe00b734..f9dd408ab11f706f3df561e704ba635e672b4dbc 100644
|
||||||
--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
||||||
+++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
+++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
||||||
@@ -585,7 +585,7 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl
|
@@ -585,7 +585,7 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl
|
||||||
@@ -17,16 +17,18 @@ index e06f914dca5625efe232440097cd6b36c02ed986..ef90caee6fb8d3d274fb51a4f080ee7b
|
|||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
ServerGamePacketListenerImpl.LOGGER.warn("{} (vehicle of {}) moved too quickly! {},{},{}", new Object[]{entity.getName().getString(), this.player.getName().getString(), d6, d7, d8});
|
ServerGamePacketListenerImpl.LOGGER.warn("{} (vehicle of {}) moved too quickly! {},{},{}", new Object[]{entity.getName().getString(), this.player.getName().getString(), d6, d7, d8});
|
||||||
this.send(new ClientboundMoveVehiclePacket(entity));
|
this.send(new ClientboundMoveVehiclePacket(entity));
|
||||||
@@ -620,7 +620,7 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl
|
@@ -621,8 +621,8 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl
|
||||||
d10 = d6 * d6 + d7 * d7 + d8 * d8;
|
d10 = d6 * d6 + d7 * d7 + d8 * d8;
|
||||||
boolean flag2 = false;
|
boolean flag2 = false;
|
||||||
|
|
||||||
- if (d10 > org.spigotmc.SpigotConfig.movedWronglyThreshold) { // Spigot
|
- if (d10 > org.spigotmc.SpigotConfig.movedWronglyThreshold) { // Spigot
|
||||||
|
- flag2 = true; // Paper - diff on change, this should be moved wrongly
|
||||||
+ if (!space.bxteam.divinemc.configuration.DivineConfig.disableMovedWronglyThreshold && d10 > org.spigotmc.SpigotConfig.movedWronglyThreshold) { // Spigot // DivineMC - Option to disable moved wrongly threshold
|
+ if (!space.bxteam.divinemc.configuration.DivineConfig.disableMovedWronglyThreshold && d10 > org.spigotmc.SpigotConfig.movedWronglyThreshold) { // Spigot // DivineMC - Option to disable moved wrongly threshold
|
||||||
flag2 = true;
|
+ flag2 = true;// Paper - diff on change, this should be moved wrongly
|
||||||
ServerGamePacketListenerImpl.LOGGER.warn("{} (vehicle of {}) moved wrongly! {}", new Object[]{entity.getName().getString(), this.player.getName().getString(), Math.sqrt(d10)});
|
ServerGamePacketListenerImpl.LOGGER.warn("{} (vehicle of {}) moved wrongly! {}", new Object[]{entity.getName().getString(), this.player.getName().getString(), Math.sqrt(d10)});
|
||||||
}
|
}
|
||||||
@@ -1433,7 +1433,7 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl
|
|
||||||
|
@@ -1467,7 +1467,7 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl
|
||||||
io.papermc.paper.event.player.PlayerFailMoveEvent event = fireFailMove(io.papermc.paper.event.player.PlayerFailMoveEvent.FailReason.MOVED_TOO_QUICKLY,
|
io.papermc.paper.event.player.PlayerFailMoveEvent event = fireFailMove(io.papermc.paper.event.player.PlayerFailMoveEvent.FailReason.MOVED_TOO_QUICKLY,
|
||||||
toX, toY, toZ, toYaw, toPitch, true);
|
toX, toY, toZ, toYaw, toPitch, true);
|
||||||
if (!event.isAllowed()) {
|
if (!event.isAllowed()) {
|
||||||
@@ -35,7 +37,7 @@ index e06f914dca5625efe232440097cd6b36c02ed986..ef90caee6fb8d3d274fb51a4f080ee7b
|
|||||||
ServerGamePacketListenerImpl.LOGGER.warn("{} moved too quickly! {},{},{}", new Object[]{this.player.getName().getString(), d6, d7, d8});
|
ServerGamePacketListenerImpl.LOGGER.warn("{} moved too quickly! {},{},{}", new Object[]{this.player.getName().getString(), d6, d7, d8});
|
||||||
this.teleport(this.player.getX(), this.player.getY(), this.player.getZ(), this.player.getYRot(), this.player.getXRot());
|
this.teleport(this.player.getX(), this.player.getY(), this.player.getZ(), this.player.getYRot(), this.player.getXRot());
|
||||||
return;
|
return;
|
||||||
@@ -1502,7 +1502,7 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl
|
@@ -1537,7 +1537,7 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl
|
||||||
d10 = d6 * d6 + d7 * d7 + d8 * d8;
|
d10 = d6 * d6 + d7 * d7 + d8 * d8;
|
||||||
boolean movedWrongly = false; // Paper - Add fail move event; rename
|
boolean movedWrongly = false; // Paper - Add fail move event; rename
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user