private void OnChunkRetesselated(bool on)
        {
            EntityBlockFallingRenderer renderer = (Properties.Client.Renderer as EntityBlockFallingRenderer);

            if (renderer != null)
            {
                renderer.DoRender = on;
            }
        }
Exemple #2
0
        public override void OnReceivedServerPacket(int packetid, byte[] data)
        {
            base.OnReceivedServerPacket(packetid, data);

            if (packetid == 1234)
            {
                EntityBlockFallingRenderer renderer = (Properties.Client.Renderer as EntityBlockFallingRenderer);
                if (renderer != null)
                {
                    World.BlockAccessor.MarkBlockDirty(Pos.AsBlockPos, () => OnChunkRetesselated(false));
                }

                lingerTicks = 50;
                fallHandled = true;
                spawnParticles(20f);
            }
        }