add spawn check in textures

This commit is contained in:
Tofaa 2024-02-23 18:31:36 +04:00
parent f2d5ec919a
commit 0ec1c828a5
3 changed files with 5 additions and 8 deletions

View file

@ -15,6 +15,7 @@
<option value="$PROJECT_DIR$/kotlin/kotlin-extensions-spigot" /> <option value="$PROJECT_DIR$/kotlin/kotlin-extensions-spigot" />
<option value="$PROJECT_DIR$/platforms" /> <option value="$PROJECT_DIR$/platforms" />
<option value="$PROJECT_DIR$/platforms/spigot" /> <option value="$PROJECT_DIR$/platforms/spigot" />
<option value="$PROJECT_DIR$/platforms/velocity" />
<option value="$PROJECT_DIR$/test-plugin" /> <option value="$PROJECT_DIR$/test-plugin" />
</set> </set>
</option> </option>

View file

@ -4,12 +4,7 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="9d5d9b6f-43c8-41a4-bb42-a66ffc96c9b0" name="Changes" comment=""> <list default="true" id="9d5d9b6f-43c8-41a4-bb42-a66ffc96c9b0" name="Changes" comment="" />
<change afterPath="$PROJECT_DIR$/code-gen/src/main/java/me/tofaa/entitylib/codegen/modern/Main.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/kotlin/kotlin-extensions-spigot/src/main/kotlin/me/tofaa/entitylib/kotlin/EntityExtensions.kt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/settings.gradle" beforeDir="false" afterPath="$PROJECT_DIR$/settings.gradle" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@ -60,8 +55,8 @@
<component name="FileTemplateManagerImpl"> <component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES"> <option name="RECENT_TEMPLATES">
<list> <list>
<option value="Class" />
<option value="Kotlin Class" /> <option value="Kotlin Class" />
<option value="Class" />
</list> </list>
</option> </option>
</component> </component>
@ -316,7 +311,7 @@
<workItem from="1708550708196" duration="523000" /> <workItem from="1708550708196" duration="523000" />
<workItem from="1708591139716" duration="1553000" /> <workItem from="1708591139716" duration="1553000" />
<workItem from="1708597333736" duration="3637000" /> <workItem from="1708597333736" duration="3637000" />
<workItem from="1708679023133" duration="5295000" /> <workItem from="1708679023133" duration="6858000" />
</task> </task>
<servers /> <servers />
</component> </component>

View file

@ -68,6 +68,7 @@ public class WrapperPlayer extends WrapperLivingEntity {
public void setTextureProperties(List<TextureProperty> textureProperties) { public void setTextureProperties(List<TextureProperty> textureProperties) {
profile.setTextureProperties(textureProperties); profile.setTextureProperties(textureProperties);
if (!isSpawned()) return;
WrapperPlayServerDestroyEntities destroyEntities = new WrapperPlayServerDestroyEntities(getEntityId()); WrapperPlayServerDestroyEntities destroyEntities = new WrapperPlayServerDestroyEntities(getEntityId());
WrapperPlayServerPlayerInfoRemove removePacket = new WrapperPlayServerPlayerInfoRemove(getUuid()); WrapperPlayServerPlayerInfoRemove removePacket = new WrapperPlayServerPlayerInfoRemove(getUuid());
WrapperPlayServerPlayerInfoUpdate updatePacket = tabListPacket(); WrapperPlayServerPlayerInfoUpdate updatePacket = tabListPacket();