mirror of
https://github.com/xSquishyLiam/mc-GeyserModelEngine-plugin.git
synced 2025-12-19 14:59:19 +00:00
fix for meg beta
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user