mirror of
https://github.com/GeyserExtensionists/GeyserModelEngine.git
synced 2025-12-19 15:09:18 +00:00
fix for meg beta
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -145,7 +145,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.retrooper</groupId>
|
<groupId>com.github.retrooper</groupId>
|
||||||
<artifactId>packetevents-spigot</artifactId>
|
<artifactId>packetevents-spigot</artifactId>
|
||||||
<version>2.6.0</version>
|
<version>2.7.0</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ public class EntityTask {
|
|||||||
sendColor(Collections.singleton(player), true);
|
sendColor(Collections.singleton(player), true);
|
||||||
updateEntityProperties(Collections.singleton(player), true);
|
updateEntityProperties(Collections.singleton(player), true);
|
||||||
}, 1000, TimeUnit.MILLISECONDS);
|
}, 1000, TimeUnit.MILLISECONDS);
|
||||||
}, delay * 50L, TimeUnit.MILLISECONDS);
|
}, Math.max(50, delay * 50L), TimeUnit.MILLISECONDS);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void sendScale(Collection<Player> players, boolean firstSend) {
|
public void sendScale(Collection<Player> players, boolean firstSend) {
|
||||||
@@ -351,8 +351,7 @@ public class EntityTask {
|
|||||||
if (playerLocation.distanceSquared(entityLocation) > player.getSendViewDistance() * player.getSendViewDistance() * 48) {
|
if (playerLocation.distanceSquared(entityLocation) > player.getSendViewDistance() * player.getSendViewDistance() * 48) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
CullType type = model.getActiveModel().getModeledEntity().getBase().getData().getTracking().get(player);
|
return true;
|
||||||
return type != null;
|
|
||||||
/*
|
/*
|
||||||
if (entity.getLocation().getChunk() == player.getChunk()) {
|
if (entity.getLocation().getChunk() == player.getChunk()) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ public class ModelEntity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public PacketEntity spawnEntity() {
|
public PacketEntity spawnEntity() {
|
||||||
entity = new PacketEntity(EntityTypes.BAT, viewers, modeledEntity.getBase().getLocation());
|
entity = new PacketEntity(EntityTypes.PIG, viewers, modeledEntity.getBase().getLocation());
|
||||||
return entity;
|
return entity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package re.imc.geysermodelengine.packet.entity;
|
|||||||
import com.github.retrooper.packetevents.PacketEvents;
|
import com.github.retrooper.packetevents.PacketEvents;
|
||||||
import com.github.retrooper.packetevents.manager.server.ServerVersion;
|
import com.github.retrooper.packetevents.manager.server.ServerVersion;
|
||||||
import com.github.retrooper.packetevents.protocol.entity.EntityPositionData;
|
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.EntityType;
|
||||||
import com.github.retrooper.packetevents.protocol.entity.type.EntityTypes;
|
import com.github.retrooper.packetevents.protocol.entity.type.EntityTypes;
|
||||||
import com.github.retrooper.packetevents.protocol.teleport.RelativeFlag;
|
import com.github.retrooper.packetevents.protocol.teleport.RelativeFlag;
|
||||||
|
|||||||
Reference in New Issue
Block a user