fix for meg beta

This commit is contained in:
zimzaza4
2024-12-15 22:15:52 +08:00
parent 8a0a1a3983
commit a9a961b45b
4 changed files with 5 additions and 5 deletions

View File

@@ -145,7 +145,7 @@
<dependency>
<groupId>com.github.retrooper</groupId>
<artifactId>packetevents-spigot</artifactId>
<version>2.6.0</version>
<version>2.7.0</version>
<scope>compile</scope>
</dependency>
</dependencies>

View File

@@ -154,7 +154,7 @@ public class EntityTask {
sendColor(Collections.singleton(player), true);
updateEntityProperties(Collections.singleton(player), true);
}, 1000, TimeUnit.MILLISECONDS);
}, delay * 50L, TimeUnit.MILLISECONDS);
}, Math.max(50, delay * 50L), TimeUnit.MILLISECONDS);
}
public void sendScale(Collection<Player> players, boolean firstSend) {
@@ -351,8 +351,7 @@ public class EntityTask {
if (playerLocation.distanceSquared(entityLocation) > player.getSendViewDistance() * player.getSendViewDistance() * 48) {
return false;
}
CullType type = model.getActiveModel().getModeledEntity().getBase().getData().getTracking().get(player);
return type != null;
return true;
/*
if (entity.getLocation().getChunk() == player.getChunk()) {
return true;

View File

@@ -59,7 +59,7 @@ public class ModelEntity {
}
public PacketEntity spawnEntity() {
entity = new PacketEntity(EntityTypes.BAT, viewers, modeledEntity.getBase().getLocation());
entity = new PacketEntity(EntityTypes.PIG, viewers, modeledEntity.getBase().getLocation());
return entity;
}

View File

@@ -3,6 +3,7 @@ package re.imc.geysermodelengine.packet.entity;
import com.github.retrooper.packetevents.PacketEvents;
import com.github.retrooper.packetevents.manager.server.ServerVersion;
import com.github.retrooper.packetevents.protocol.entity.EntityPositionData;
import com.github.retrooper.packetevents.protocol.entity.data.EntityMetadataProvider;
import com.github.retrooper.packetevents.protocol.entity.type.EntityType;
import com.github.retrooper.packetevents.protocol.entity.type.EntityTypes;
import com.github.retrooper.packetevents.protocol.teleport.RelativeFlag;