mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Per review by @Camotoy
This commit is contained in:
parent
8b9f41d4a6
commit
2dbd39c5a4
2 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
val paperVersion = "1.19-R0.1-SNAPSHOT" // Needed because we do not support Java 17 yet
|
val paperVersion = "1.19-R0.1-SNAPSHOT"
|
||||||
val viaVersion = "4.0.0"
|
val viaVersion = "4.0.0"
|
||||||
val adaptersVersion = "1.4-SNAPSHOT"
|
val adaptersVersion = "1.4-SNAPSHOT"
|
||||||
val commodoreVersion = "1.13"
|
val commodoreVersion = "1.13"
|
||||||
|
|
|
@ -116,6 +116,7 @@ import org.geysermc.geyser.inventory.recipe.GeyserStonecutterData;
|
||||||
import org.geysermc.geyser.level.JavaDimension;
|
import org.geysermc.geyser.level.JavaDimension;
|
||||||
import org.geysermc.geyser.level.WorldManager;
|
import org.geysermc.geyser.level.WorldManager;
|
||||||
import org.geysermc.geyser.level.physics.CollisionManager;
|
import org.geysermc.geyser.level.physics.CollisionManager;
|
||||||
|
import org.geysermc.geyser.network.GameProtocol;
|
||||||
import org.geysermc.geyser.network.netty.LocalSession;
|
import org.geysermc.geyser.network.netty.LocalSession;
|
||||||
import org.geysermc.geyser.registry.Registries;
|
import org.geysermc.geyser.registry.Registries;
|
||||||
import org.geysermc.geyser.registry.type.BlockMappings;
|
import org.geysermc.geyser.registry.type.BlockMappings;
|
||||||
|
@ -1643,7 +1644,7 @@ public class GeyserSession implements GeyserConnection, GeyserCommandSource {
|
||||||
boolean spectator = gameMode == GameMode.SPECTATOR;
|
boolean spectator = gameMode == GameMode.SPECTATOR;
|
||||||
boolean worldImmutable = gameMode == GameMode.ADVENTURE || spectator;
|
boolean worldImmutable = gameMode == GameMode.ADVENTURE || spectator;
|
||||||
|
|
||||||
if (org.geysermc.geyser.network.GameProtocol.supports1_19_10(this)) {
|
if (GameProtocol.supports1_19_10(this)) {
|
||||||
UpdateAdventureSettingsPacket adventureSettingsPacket = new UpdateAdventureSettingsPacket();
|
UpdateAdventureSettingsPacket adventureSettingsPacket = new UpdateAdventureSettingsPacket();
|
||||||
adventureSettingsPacket.setNoMvP(false);
|
adventureSettingsPacket.setNoMvP(false);
|
||||||
adventureSettingsPacket.setNoPvM(false);
|
adventureSettingsPacket.setNoPvM(false);
|
||||||
|
|
Loading…
Reference in a new issue