Compare commits

..

No commits in common. "free" and "upstream" have entirely different histories.

9 changed files with 4 additions and 65 deletions

View File

@ -1,11 +0,0 @@
kind: pipeline
name: default
trigger:
branch:
- free
steps:
- name: build
image: maven:3-eclipse-temurin-17
commands:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- mvn test -B

2
.gitignore vendored
View File

@ -1,2 +0,0 @@
.idea/
target/

View File

@ -10,6 +10,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>v1_17_R1</artifactId>
<version>1.0-SNAPSHOT</version>
@ -44,12 +45,6 @@
<groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib</artifactId>
</dependency>
<dependency>
<groupId>com.mojang</groupId>
<artifactId>authlib</artifactId>
<version>3.2.37</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>

View File

@ -22,11 +22,6 @@
</properties>
<dependencies>
<dependency>
<groupId>com.mojang</groupId>
<artifactId>datafixerupper</artifactId>
<version>1.0.20</version>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
@ -49,22 +44,6 @@
<groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib</artifactId>
</dependency>
<dependency>
<groupId>com.mojang</groupId>
<artifactId>authlib</artifactId>
<version>3.2.37</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>it.unimi.dsi</groupId>
<artifactId>fastutil</artifactId>
<version>8.5.8</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
</dependency>
</dependencies>
<build>

View File

@ -11,6 +11,7 @@ import com.mojang.authlib.Agent;
import com.mojang.authlib.GameProfile;
import com.mojang.authlib.ProfileLookupCallback;
import com.mojang.authlib.minecraft.MinecraftSessionService;
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
import me.libraryaddict.disguise.utilities.reflection.ReflectionManagerAbstract;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Registry;
@ -200,7 +201,7 @@ public class ReflectionManager implements ReflectionManagerAbstract {
ServerLevel world = ((CraftWorld) target.getWorld()).getHandle();
ServerChunkCache chunkSource = world.getChunkSource();
ChunkMap chunkMap = chunkSource.chunkMap;
Map<Integer, ChunkMap.TrackedEntity> entityMap = chunkMap.entityMap;
Int2ObjectMap<ChunkMap.TrackedEntity> entityMap = chunkMap.entityMap;
ChunkMap.TrackedEntity trackedEntity = entityMap.get(target.getEntityId());
if (trackedEntity == null) {
return null;

View File

@ -136,12 +136,6 @@
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
</dependency>
<dependency>
<groupId>com.mojang</groupId>
<artifactId>authlib</artifactId>
<version>3.2.37</version>
<scope>provided</scope>
</dependency>
<!-- testing -->
<dependency>
<groupId>junit</groupId>

View File

@ -74,7 +74,7 @@ public class LibsPremium {
* Returns true if this plugin is premium
*/
public static Boolean isPremium() {
return true;
return thisPluginIsPaidFor == null ? isPremium(getResourceID(), getUserID()) : thisPluginIsPaidFor;
}
/**

11
pom.xml
View File

@ -53,12 +53,6 @@
<version>${spigot.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.mojang</groupId>
<artifactId>authlib</artifactId>
<version>3.2.37</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
@ -78,11 +72,6 @@
<url>https://papermc.io/repo/repository/maven-public/</url>
</repository>
<repository>
<id>velocity</id>
<url>https://nexus.velocitypowered.com/repository/maven-public/</url>
</repository>
<!-- Lumine is a repo hosted by the creators of MythicCraft -->
<repository>
<id>lumine</id>

View File

@ -32,12 +32,6 @@
<groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib</artifactId>
</dependency>
<dependency>
<groupId>com.mojang</groupId>
<artifactId>authlib</artifactId>
<version>3.2.37</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>