Skip to content

Commit

Permalink
🐛 Fixed a bug with old versions
Browse files Browse the repository at this point in the history
  • Loading branch information
SkytAsul committed Dec 23, 2024
1 parent ec30df9 commit 65bc2b0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>fr.skytasul</groupId>
<artifactId>glowingentities</artifactId>
<version>1.4.2</version>
<version>1.4.3</version>

<name>GlowingEntities</name>
<description>A Spigot util to easily make entities glow.</description>
Expand Down Expand Up @@ -64,7 +64,7 @@
<dependency>
<groupId>fr.skytasul</groupId>
<artifactId>reflection-mappings-shrieker</artifactId>
<version>1.0.0</version>
<version>1.1.0</version>
<scope>provided</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ net.minecraft.world.scores.Team$CollisionRule -> net.minecraft.world.scores.Scor
NEVER -> b
net.minecraft.server.network.ServerGamePacketListenerImpl -> net.minecraft.server.network.PlayerConnection:
connection -> a
send(net.minecraft.network.protocol.Packet) -> a
send(net.minecraft.network.protocol.Packet) -> sendPacket
net.minecraft.network.syncher.SynchedEntityData$DataItem -> net.minecraft.network.syncher.DataWatcher$Item:
getAccessor() -> a
getValue() -> b
Expand Down Expand Up @@ -551,7 +551,7 @@ net.minecraft.world.scores.Team$CollisionRule -> net.minecraft.world.scores.Scor
NEVER -> b
net.minecraft.server.network.ServerGamePacketListenerImpl -> net.minecraft.server.network.PlayerConnection:
connection -> a
send(net.minecraft.network.protocol.Packet) -> a
send(net.minecraft.network.protocol.Packet) -> sendPacket
net.minecraft.network.syncher.SynchedEntityData$DataItem -> net.minecraft.network.syncher.DataWatcher$Item:
getAccessor() -> a
getValue() -> b
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import fr.skytasul.reflection.Version;
import fr.skytasul.reflection.mappings.files.ProguardMapping;
import fr.skytasul.reflection.shrieker.CustomMappings;
import fr.skytasul.reflection.shrieker.MappingsShrieker;
import fr.skytasul.reflection.shrieker.PipeMappings;
import fr.skytasul.reflection.shrieker.minecraft.MinecraftMappingsProvider;
Expand Down Expand Up @@ -35,7 +36,9 @@ public void start() throws MappingGenerationException, IOException {
try {
LOGGER.info("Downloading mappings for " + version + "...");
var minecraftMappings = mappingsProvider.loadMinecraftMappings(version);
var spigotMappings = mappingsProvider.loadSpigotMappings(version);
var spigotMappings = new CustomMappings(mappingsProvider.loadSpigotMappings(version));
spigotMappings.getClassFromMapped("net.minecraft.server.network.PlayerConnection").inheritsFrom(
spigotMappings.getClassFromMapped("net.minecraft.server.network.ServerPlayerConnection"));
LOGGER.info("Shrieking mappings...");
spigotShrieker.registerVersionMappings(version, new PipeMappings(minecraftMappings, spigotMappings));
} catch (ReflectiveOperationException ex) {
Expand Down

0 comments on commit 65bc2b0

Please sign in to comment.